Fabien Potencier
1219b98ec5
renamed some methods in the event dispatcher
2011-03-17 15:27:42 +01:00
Bernhard Schussek
1c9a00733f
Merge branch 'event-manager' into experimental
...
Conflicts:
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-17 13:38:24 +01:00
Bernhard Schussek
5f14d8d6aa
Merge remote branch 'symfony/master' into event-manager
...
Conflicts:
src/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetWriterCacheWarmer.php
src/Symfony/Bundle/AsseticBundle/Tests/CacheWarmer/AssetWriterCacheWarmerTest.php
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php
src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml
src/Symfony/Component/HttpKernel/HttpKernel.php
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-17 12:34:12 +01:00
Bernhard Schussek
de5748070d
[FrameworkBundle] Removed EventSubscriber support for DI tags because it currently cannot be implemented
2011-03-17 12:22:49 +01:00
Bernhard Schussek
f64f55002b
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-16 16:00:54 +01:00
Martin Hason
cef70893df
[HttpKernel], [FrameworkBundle] added method getContainerClass and parameter kernel.container_class
2011-03-15 09:16:02 +01:00
Fabien Potencier
f4e4a2aa1b
refactored ConfigCache and optimized container:debug task
2011-03-14 18:37:25 +01:00
Bernhard Schussek
0bf566310c
Merge branch 'event-manager' into experimental
...
Conflicts:
src/Symfony/Component/Form/BirthdayField.php
src/Symfony/Component/Form/CheckboxField.php
src/Symfony/Component/Form/ChoiceField.php
src/Symfony/Component/Form/ChoiceList/TimeZoneChoiceList.php
src/Symfony/Component/Form/CollectionField.php
src/Symfony/Component/Form/DateField.php
src/Symfony/Component/Form/DateTimeField.php
src/Symfony/Component/Form/EntityChoiceField.php
src/Symfony/Component/Form/Events.php
src/Symfony/Component/Form/FieldFactory/FieldFactory.php
src/Symfony/Component/Form/FieldFactory/FieldFactoryInterface.php
src/Symfony/Component/Form/FileField.php
src/Symfony/Component/Form/Filters.php
src/Symfony/Component/Form/FormContext.php
src/Symfony/Component/Form/FormContextInterface.php
src/Symfony/Component/Form/FormFactoryInterface.php
src/Symfony/Component/Form/HybridField.php
src/Symfony/Component/Form/IntegerField.php
src/Symfony/Component/Form/LanguageField.php
src/Symfony/Component/Form/LocaleField.php
src/Symfony/Component/Form/MoneyField.php
src/Symfony/Component/Form/NumberField.php
src/Symfony/Component/Form/PasswordField.php
src/Symfony/Component/Form/PercentField.php
src/Symfony/Component/Form/RepeatedField.php
src/Symfony/Component/Form/TextField.php
src/Symfony/Component/Form/TimeField.php
src/Symfony/Component/Form/ToggleField.php
src/Symfony/Component/Form/UrlField.php
src/Symfony/Component/HttpFoundation/File/UploadedFile.php
tests/Symfony/Tests/Component/Form/FileFieldTest.php
tests/Symfony/Tests/Component/Form/FormContextTest.php
tests/Symfony/Tests/Component/Form/HiddenFieldTest.php
2011-03-13 21:04:24 +01:00
Bernhard Schussek
06c682b4fb
Switched from Doctrine's EventManager implementation to the EventManager clone in Symfony2 (now called EventDispatcher again)
2011-03-13 19:49:10 +01:00
Bernhard Schussek
25931caeab
Merge remote branch 'symfony/master' into event-manager
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventManager.php
src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php
src/Symfony/Component/Security/Http/Firewall.php
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
src/Symfony/Component/Security/Http/Firewall/AccessListener.php
src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/ChannelListener.php
src/Symfony/Component/Security/Http/Firewall/ContextListener.php
src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php
src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php
src/Symfony/Component/Security/Http/Firewall/LogoutListener.php
src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php
src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php
2011-03-13 19:15:25 +01:00
Ryan Weaver
a495fa3dce
[FrameworkBundle] Adding a container:debug console
...
This command uses a new container pass which dumps the ContainerBuilder into a cache file by serializing it. It's possible that we don't want this to run when kernel.debug = false, but I don't see the harm of generating the file and running the container:debug in, for example, the prod environment seems to make sense.
2011-03-12 14:44:21 -06:00
Ryan Weaver
69ad4e4f77
[FrameworkBundle] Adding an exception to help with bad configuration and filling in some missing tests
2011-03-07 21:10:01 -06:00
Bernhard Schussek
2cf3779a2c
Renamed EventArgs classes and adapted remaining code to EventManager
...
The only missing part is ContainerAwareEventManager::addEventSubscriberService(),
because I'm not sure how to find out the class name of a service in the DIC.
Also, inline documentation of this code needs to be finished once it is accepted.
2011-03-07 19:16:05 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Bernhard Schussek
5705f74bd0
[Form] Refactored FieldFactory and moved new implementation into the DIC. FormTest fails now.
2011-03-02 14:58:19 +01:00
Lukas Kahwe Smith
7f182bd877
implicitly load all registered bundles, all loading is now handled by load(), disable loading of an extension explcitly via setting the extension config to false (for now only Yaml is implemented)
2011-02-15 22:11:08 +01:00
Kris Wallsmith
ea536b0d9e
[FrameworkBundle] added cache warmer priority
2011-02-04 00:59:44 +01:00
Fabien Potencier
025e142dd4
removed parameter converters as decided during IRC meeting (supported is still provided by FrameworkExtraBundle)
...
You must remove the configuration element if you had enabled the feature:
<app:param-converter />
2011-01-29 15:04:28 +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
249ed63373
[FrameworkBundle] made a small change
2011-01-27 14:14:15 +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 Schmitt
57ae50e894
[Security] many improvements, and fixes
2011-01-26 16:38:54 +01:00
Fabien Potencier
935c82e1f9
[FrameworkBundle] simplified some code
2011-01-25 16:42:50 +01:00
Fabien Potencier
d0b4bfc8f6
added a cache warmer sub-framework
...
Cache warmer will come in the next commits.
To warm up the cache on a production server, you can use
the cache:warmup command:
./app/console_prod cache:warmup
2011-01-24 18:08:51 +01:00
Fabien Potencier
49793c22d4
fixed event dispatcher
2011-01-24 16:46:04 +01:00
Fabien Potencier
1c11d81611
made all event listeners lazy loaded
...
* The register() method on all listeners has been removed
* Instead, the information is now put directly in the DIC tag
For instance, a listener on core.request had this method:
public function register(EventDispatcher $dispatcher, $priority = 0)
{
$dispatcher->connect('core.response', array($this, 'filter'), $priority);
}
And this tag in the DIC configuration:
<tag name="kernel.listener" />
Now, it only has the following configuration:
<tag name="kernel.listener" event="core.response" method="filter" priority="0" />
The event and method attributes are now mandatory.
2011-01-23 18:07:05 +01:00
Fabien Potencier
9310eea57a
optimized templating layer
...
You must now explicitly register the templating engine you want to use:
<app:templating>
<app:engine id="twig" />
</app:templating>
app.templating:
engines: ['twig']
Symfony2 comes with two such engines: 'twig', and 'php'.
2011-01-23 15:43:08 +01:00
Fabien Potencier
5e625d1f52
[FrameworkBundle] simplified code
2011-01-23 14:38:09 +01:00
Bernhard Schussek
8f8f53d631
[Form][FrameworkBundle] Implemented FormFactory and added it to the DI container
2011-01-19 16:25:50 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Fabien Potencier
15575bccc4
made order of template engine and data collector more predictable
2011-01-17 22:27:13 +01:00
Fabien Potencier
e0050dfc8f
[FrameworkBundle] added a compiler pass for translation loaders
2011-01-17 11:29:38 +01:00
Fabien Potencier
4c2537f1c3
made data collectors private
2011-01-17 11:17:48 +01:00
Fabien Potencier
d06f805d95
added a priority for data collectors
2011-01-17 11:09:31 +01:00
Fabien Potencier
b7d2528384
added a way for any extension to add classes to the class cache
2011-01-16 11:32:17 +01:00
Fabien Potencier
055b6e4d6e
made a big refactoring of the templating sub-framework
...
* better separation of concerns
* made TwigBundle independant of the PHP Engine from FrameworkBundle (WIP)
* removed one layer of abstraction in the Templating component (renderers)
* made it easier to create a new Engine for any templating library
* made engines lazy-loaded (PHP engine for instance is not started if you only use Twig)
* reduces memory footprint (if you only use one engine)
* reduces size of compiled classes.php cache file
2011-01-15 07:43:05 +01:00
Lukas Kahwe Smith
f2ac2a4c8a
changed templating to use setter injection for renderers
2011-01-07 15:08:35 +01:00
Fabien Potencier
d21fb757b6
[FrameworkBundle] removed setEngine call as the Engine already does it automatically (and it also avoids a circular reference)
2011-01-06 14:21:50 +01:00
Johannes M. Schmitt
c5ef113b18
DI container optimization
2011-01-05 15:41:11 +01:00
Fabien Pennequin
b26d44b4a3
[FrameworkBundle] Fixed error with priority for param converter services
2010-12-30 16:55:45 +01:00
Fabien Potencier
2985cfa5a9
[FrameworkBundle] converted the special Profiler class to a DIC compiler class
2010-12-23 12:58:34 +01:00
Fabien Potencier
385ad72d64
[FrameworkBundle] converted the special routing resolver to a DIC compiler pass
2010-12-23 12:55:58 +01:00
Henrik Bjørnskov
3516a043bc
[FrameworkBundle] Moved the adding of Converter tags to a CompilerPass by suggestion of schmittjoh.
2010-12-23 11:08:19 +01:00
Johannes M. Schmitt
03d25cc7fa
refactored creation of access decision manager to make use of newly added compiler passes
2010-12-21 08:52:48 +01:00