Bulat Shakirzyanov
799375dfd6
[EventDispatcher] removed unused class variable
2011-01-28 16:36:43 +01:00
Fabien Potencier
01439d5f14
updated bootstrap file
2011-01-28 10:11:09 +01:00
Bernhard Schussek
ebd2ca6cfe
[Form] Moved option 'empty_value' to ChoiceField. An empty value is displayed if the field is not required.
2011-01-28 09:22:06 +01:00
Bernhard Schussek
34865a3533
[Form] Added a field guess for AssertType('\DateTime') constraint
2011-01-28 09:20:58 +01:00
Bernhard Schussek
ce61baf717
[Form] ChoiceField now accepts closures in the 'choices' option
2011-01-28 09:20:41 +01:00
Bernhard Schussek
9e6e95d7e4
[Form] Fixed: required setting in FieldFactory is now properly overridable
2011-01-28 09:20:27 +01:00
Bernhard Schussek
0c3ca26e6e
[Validator] Implemented traversing of \Traversable objects using the @Valid constraint. Can be disabled by setting the @Valid option 'traverse' to false
2011-01-28 09:19:32 +01:00
Johannes Schmitt
803dd58002
add definition inheritance support
2011-01-28 09:12:29 +01:00
Lukas Kahwe Smith
26666a272d
fixed array support in twig globals
2011-01-27 21:48:20 +01:00
Fabien Potencier
98c1056fbf
renamed Request::fromGlobals() to Request::createFromGlobals() (for consistency with the existing create() method)
2011-01-27 21:20:08 +01:00
Kris Wallsmith
224e66f77b
[HttpFoundation] added static Request::fromGlobals()
...
The Request constructor no longer uses values from PHP's super globals. If you want a Request populated with these values you must use the new static method Request::fromGlobals().
Your front controllers (i.e. web/app.php, web/app_dev.php ...) will need to be updated:
// old
$kernel->handle(new Request())->send();
// new
$kernel->handle(Request::fromGlobals())->send();
2011-01-27 21:12:55 +01:00
Johannes M. Schmitt
f3c2e98b25
lazy-load the compiler, and related objects
2011-01-27 21:06:49 +01:00
Victor Berchet
935332d0f5
fix autoload
2011-01-27 16:49:02 +01:00
Benjamin Eberlei
63375060e8
[DoctrineBundle] Refactor doctrine-1.0.xsd
2011-01-27 16:38:33 +01:00
Benjamin Eberlei
3c9c43d592
[DoctrineBundle] Add support to configure DBAL Types through the dbal configuration section.
2011-01-27 16:38:32 +01:00
Victor Berchet
cd96c91447
json_encode() syntax (fix commit fb889a2eee
)
2011-01-27 16:37:25 +01:00
Fabien Potencier
4ecafd883e
[FrameworkBundle] moved class cache loader earlier
2011-01-27 16:34:54 +01:00
Fabien Potencier
2509c9da4b
added an autoloader that uses a class map
...
A class in Symfony2 can be loaded by four different mechanisms:
* bootstrap.php: This file contains classes that are always required and
needed very early in the request handling;
* classes.php: This file contains classes that are always required and
managed by extensions via addClassesToCompile();
* MapFileClassLoader: This autoloader uses a map of class/file to load
classes (classes are managed by extensions via addClassesToAutoloadMap(),
and should contain often used classes);
* UniversalAutolaoder: This autoloader loads all other classes (it's the
slowest one).
2011-01-27 16:30:58 +01:00
Fabien Potencier
02820a5a56
[HttpKernel] fixed phpdoc
2011-01-27 16:30:58 +01:00
Fabien Potencier
532bbbde30
[SecurityBundle] fixed typo
2011-01-27 14:50:10 +01:00
Fabien Potencier
d5b540a4fe
[FrameworkBundle] made a small optimization
2011-01-27 14:32:30 +01:00
Fabien Potencier
249ed63373
[FrameworkBundle] made a small change
2011-01-27 14:14:15 +01:00
Fabien Potencier
95e10b3ed9
moved ClassLoaderCollection class to the ClassLoader component
2011-01-27 14:11:54 +01:00
Fabien Potencier
db818284af
moved class compiled in cache to the FrameworkBundle
2011-01-27 14:07:30 +01:00
Fabien Potencier
6997fbac0d
fixed previous commit
2011-01-27 13:58:21 +01:00
Johannes M. Schmitt
8ccb8eb8c2
added two events "security.interactive_login", and "security.switch_user"
2011-01-27 13:49:01 +01:00
Johannes M. Schmitt
00d3d8c3bc
renamed PreAuthenticatedListener to AbstractPreAuthenticatedListener to be consistent
2011-01-27 13:49:01 +01:00
Johannes Schmitt
139510a78e
added some doc comments
2011-01-27 13:49:00 +01:00
Fabien Potencier
42f9c556a3
moved the class loader to its own component
2011-01-27 13:04:16 +01:00
Fabien Potencier
7bd30398c6
[FrameworkBundle] moved some cache warmers
2011-01-27 12:22:32 +01:00
Fabien Potencier
0219ec3dbc
[DependencyInjection] added missing methods in ContainerInterface
2011-01-27 08:42:22 +01:00
Bulat Shakirzyanov
ff34f7d281
[DoctrineMongoDBBundle] added support for multiple document managers
2011-01-26 22:25:21 +01:00
Johannes M. Schmitt
cf64d2cfe7
namespace changes
...
Symfony\Component\Security -> Symfony\Component\Security\Core
Symfony\Component\Security\Acl remains unchanged
Symfony\Component\HttpKernel\Security -> Symfony\Component\Security\Http
2011-01-26 22:23:20 +01:00
Fabien Potencier
e557500c97
[HttpKernel] removed obsolete code
2011-01-26 21:51:35 +01:00
Fabien Potencier
edf57fc392
[HttpKernel] removed obsolete code
2011-01-26 21:48:48 +01:00
Fabien Potencier
75404e6bd6
renamed HttpKernel/Cache/ namespace to HttpKernel/HttpCache/
2011-01-26 21:44:54 +01:00
Lukas Kahwe Smith
d10f631c3d
fixed security engine loading
2011-01-26 21:15:00 +01:00
Fabien Potencier
b154643b65
Revert "[DoctrineBundle][DoctrineMongoDBBundle] Create DIC params for security user provider EM/DM aliases"
...
This reverts commit 24c7715029
.
2011-01-26 20:33:08 +01:00
Jeremy Mikola
24c7715029
[DoctrineBundle][DoctrineMongoDBBundle] Create DIC params for security user provider EM/DM aliases
...
Also changed the default alias to Doctrine's own canonical aliases for the default EM/DM.
2011-01-26 19:37:12 +01:00
Fabien Potencier
e645090423
moved security related things to a new SecurityBundle (the Security component is left unchanged)
2011-01-26 19:10:54 +01:00
Johannes M. Schmitt
a367dfc3ec
fixes a bug where RememberMeServices were not called consistently
2011-01-26 16:38:54 +01:00
Johannes Schmitt
e0fe42d050
removed isAuthenticated() from SecurityContext
2011-01-26 16:38:54 +01:00
Johannes Schmitt
57ae50e894
[Security] many improvements, and fixes
2011-01-26 16:38:54 +01:00
Fabien Potencier
fb889a2eee
replaced some var_export() with json_encode() for better readability
2011-01-26 15:55:28 +01:00
Fabien Potencier
5d963f5460
[Templating] fixed PhpEngine::render() when the name passed to it is already an array
2011-01-26 15:34:10 +01:00
Fabien Potencier
db2f2b1315
refactored template name parser to occur independently of the loaders
2011-01-26 14:53:12 +01:00
Fabien Pennequin
956857119b
[Form] Fixed typo in phpdoc
2011-01-26 10:36:10 +01:00
Fabien Pennequin
c392f2518d
[Form][Validator] Fixed indentation
2011-01-26 10:36:10 +01:00
Fabien Potencier
136647c753
[FrameworkBundle] refactored router cache class parameters
2011-01-26 08:50:16 +01:00
Fabien Potencier
8b62df7247
changed the EventDispatcher and Event interfaces
...
The three notification methods do not return the Event instance anymore.
notify() does not return anything
notifyUntil() returns the returned value of the event that has processed the event
filter() returns the filtered value
Upgrading your listeners:
Listeners for notify() and filter() events: nothing to change
Listeners for notifyUntil() events:
Before:
$event->setReturnValue('foo');
return true;
After:
$event->setProcessed();
return 'foo';
If you notify events, the processing also need to be changed:
For filter() notifications: the filtered value is now available as
the returned value of the filter() method.
For notifyUntil() notifications:
Before:
$event = $dispatcher->notifyUntil($event);
if ($event->isProcessed()) {
$ret = $event->getReturnValue();
// do something with $ret
}
After:
$ret = $dispatcher->notifyUntil($event);
if ($event->isProcessed()) {
// do something with $ret
}
2011-01-26 08:41:59 +01:00