Commit Graph

2871 Commits

Author SHA1 Message Date
Fabien Potencier
6c8e71c8e7 renamed filterCore* to onCore*
The onCore* events are fired at some pre-defined points during the
handling of a request. At this is more important than the fact
that you can change things from the event.
2011-03-17 17:01:59 +01:00
ever.zet
8b885a991c [Console] updated console and stream outputs to support new output formatter 2011-03-17 17:53:46 +02:00
ever.zet
644cf612b3 [Console] updated console output to support new output formatter and styles 2011-03-17 17:52:36 +02:00
ever.zet
4fe2efd49e [Console] implemented output formatter to decorate and format output messages 2011-03-17 17:51:49 +02:00
ever.zet
e5700b817b [Console] implemented output formatter style class for defining custom styles 2011-03-17 17:51:25 +02:00
ever.zet
65681cdc85 [Console] added output formatter interfaces 2011-03-17 17:50:42 +02:00
Victor Berchet
0e84757d94 Tweak PHPDocs in the extension configuration files 2011-03-17 16:29:03 +01:00
Victor Berchet
1e0ed22c55 [Config] Component refactoring
The Config component API have changed and the extension configuration files must be updated accordingly:

1. Array nodes must enclosed their children definition in ->children() ... ->end() calls:

Before:

    $treeBuilder->root('zend', 'array')
        ->arrayNode('logger')
            ->scalarNode('priority')->defaultValue('INFO')->end()
            ->booleanNode('log_errors')->defaultFalse()->end()
        ->end();

After:

    $treeBuilder->root('zend', 'array')
        ->children()
            ->arrayNode('logger')
                ->children()
                    ->scalarNode('priority')->defaultValue('INFO')->end()
                    ->booleanNode('log_errors')->defaultFalse()->end()
                ->end()
            ->end()
        ->end();

2. The 'builder' method (in NodeBuilder) has been dropped in favor of an 'append' method (in ArrayNodeDefinition)

Before:

    $treeBuilder->root('doctrine', 'array')
        ->arrayNode('dbal')
            ->builder($this->getDbalConnectionsNode())
        ->end();

After:

    $treeBuilder->root('doctrine', 'array')
        ->children()
            ->arrayNode('dbal')
                ->append($this->getDbalConnectionsNode())
            ->end()
        ->end();

3. The root of a TreeBuilder is now an NodeDefinition (and most probably an ArrayNodeDefinition):

Before:

    $root = $treeBuilder->root('doctrine', 'array');
    $this->addDbalSection($root);

    public function addDbalSection(NodeBuilder $node)
    {
        ...
    }

After:

    $root = $treeBuilder->root('doctrine', 'array');
    $this->addDbalSection($root);

    public function addDbalSection(ArrayNodeDefinition $node)
    {
        ...
    }

4. The NodeBuilder API has changed (this is seldom used):

Before:

    $node = new NodeBuilder('connections', 'array');

After:

The recommended way is to use a tree builder:

    $treeBuilder = new TreeBuilder();
    $node = $treeBuilder->root('connections', 'array');

An other way would be:

    $builder = new NodeBuilder();
    $node = $builder->node('connections', 'array');

Some notes:

- Tree root nodes should most always be array nodes, so this as been made the default:

    $treeBuilder->root('doctrine', 'array') is equivalent to $treeBuilder->root('doctrine')

- There could be more than one ->children() ... ->end() sections. This could help with the readability:

    $treeBuilder->root('doctrine')
        ->children()
            ->scalarNode('default_connection')->end()
        ->end()
        ->fixXmlConfig('type')
        ->children()
            ->arrayNode('types')
                ....
            ->end()
        ->end()
2011-03-17 16:26:15 +01:00
Fabien Potencier
9d0b6f0012 fixed CS 2011-03-17 16:09:25 +01:00
Fabien Potencier
794b3b8e86 fixed phpdoc 2011-03-17 16:02:36 +01:00
Fabien Potencier
1219b98ec5 renamed some methods in the event dispatcher 2011-03-17 15:27:42 +01:00
Jan Prieser
60c1159b2e [DependecyInjection] fixed typo. Using InterfaceInjectors broke methodCalls. 2011-03-17 15:03:16 +01:00
Fabien Potencier
663b0a97ac Merge remote branch 'bschussek/event-manager' 2011-03-17 15:02:26 +01:00
Christophe Coevoet
da938adade [SwiftmailerBundle] Changed the default logging value to kernel.debug 2011-03-17 13:35:41 +01:00
Bernhard Schussek
c02f4220f2 [HttpKernel] Removed unused onCoreSecurity event 2011-03-17 13:24:38 +01:00
Bernhard Schussek
466f1b99c5 [Security] Fixed method names in the Firewall listeners 2011-03-17 13:24:23 +01:00
Bernhard Schussek
ab57e5c611 [HttpKernel] Added more code documentation to the HttpKernel events 2011-03-17 13:06:32 +01:00
Bernhard Schussek
ffdc879624 [Security] Fixed method calls on EventDispatcher 2011-03-17 12:34:30 +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
Fabien Potencier
d5396f64de [HttpFoundation] fixed a small bug on Windows 2011-03-17 12:28:29 +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
73464f411e Merge remote branch 'Infranology/intl-stub' into intl-stub 2011-03-17 11:20:52 +01:00
Bernhard Schussek
f966c30c8b Merge remote branch 'symfony/master' into intl-stub 2011-03-17 11:20:25 +01:00
Fabien Potencier
e8b0b488cb [HttpKernel] moved exception management logic to its own method 2011-03-17 09:16:53 +01:00
Fabien Potencier
b0948063b2 [SwiftmailerBundle] tweaked profiler template 2011-03-17 08:14:44 +01:00
Fabien Potencier
8c6f135534 [SwiftmailerBundle] made data collector configurable via the logging option 2011-03-17 08:12:18 +01:00
Fabien Potencier
95532cc1de [WebProfilerBundle] tweaked profiler CSS 2011-03-17 08:12:15 +01:00
Fabien Potencier
ee70656030 [WebProfileBundle] removed the logger info in the WDT if no error has been recorded (to save space on smaller screens) 2011-03-17 07:47:05 +01:00
Fabien Potencier
3071dd0519 [DoctrineBundle] renamed data_collector to be coherent with all others 2011-03-17 07:42:25 +01:00
Fabien Potencier
610ddf0e74 [SwiftmailerBundle] fixed typo 2011-03-17 07:38:02 +01:00
Fabien Potencier
c2bc35d0e6 [SwiftmailerBundle] renamed data collector 2011-03-17 07:38:02 +01:00
Fabien Potencier
3346e291f2 [SwiftmailerBundle] added the mailer as a dependency to the data collector to ensure that Swiftmailer is always initialized 2011-03-17 07:37:59 +01:00
Fabien Potencier
bde928be86 [SwiftmailerBundle] re-added phpdoc from symfony 1.4 and simplified code copy and pasted from symfony 1.4 2011-03-17 07:36:18 +01:00
Fabien Potencier
b479116e50 Merge remote branch 'dator/swiftmailer_profiler' 2011-03-17 07:14:09 +01:00
Fabien Potencier
14903ce915 [HttpKernel] removed the need to call getRootDir() more than once 2011-03-16 21:50:24 +01:00
Fabien Potencier
a6411cb712 [HttpKernel] fixed phpdoc 2011-03-16 21:39:30 +01:00
Fabien Potencier
7edb1a5f13 fixed previous commit 2011-03-16 21:39:30 +01:00
Fabien Potencier
4da43df963 merged vicb/kernel 2011-03-16 21:30:23 +01:00
Fabien Potencier
f48512cd54 [HttpKernel] renamed default profiler table to sf_profiler_data 2011-03-16 20:47:50 +01:00
Fabien Potencier
adf3d02695 Merge remote branch 'kriswallsmith/assetic/rm-event' 2011-03-16 19:38:15 +01:00
Fabien Potencier
0610385615 Merge remote branch 'vicb/profiler_liquid' 2011-03-16 19:37:02 +01:00
Fabien Potencier
e6ebf4da4c fixed small bug in sub-request profiling 2011-03-16 19:33:55 +01:00
Clément Jobeili
463591afbe Add Licence and Documentation 2011-03-16 18:22:38 +01:00
Clément Jobeili
1342752e7e Add the message body et charset 2011-03-16 18:21:43 +01:00
Victor Berchet
d56fadfbb9 [WebProfilerBundle] Use a liquid layout rather than a fixed width layout. 2011-03-16 18:02:55 +01:00
Clément Jobeili
df08655e97 Add a DataCollector for the SwiftmailerBundle 2011-03-16 17:57:04 +01:00
Fabien Potencier
ad3b7e912d merged noelg/profiler 2011-03-16 16:44:44 +01:00
Kris Wallsmith
caaff216df [AsseticBundle] removed assetic.write event 2011-03-16 08:36:36 -07:00
Fabien Potencier
005287ac88 Merge remote branch 'kriswallsmith/templating/asset-packages' 2011-03-16 16:18:45 +01:00
Fabien Potencier
13cac29a31 Merge remote branch 'stof/php_globals' 2011-03-16 16:04:05 +01:00
Fabien Potencier
28d9b331bd [FrameworkBundle] made the profiler easily configurable 2011-03-16 15:58:56 +01:00
Fabien Potencier
8cc37eaa23 [HttpKernel] fixed CS 2011-03-16 15:16:21 +01:00
Fabien Potencier
f9d2f69ca8 Merge remote branch 'janschumann/mysql_profiler_storage' 2011-03-16 15:09:07 +01:00
Christophe Coevoet
8dc6464aa4 [FrameworkBundle] Fixed previous commit and added some tests for PHP globals 2011-03-16 15:04:19 +01:00
Fabien Potencier
ae7a2df104 fixed CS 2011-03-16 14:45:34 +01:00
Fabien Potencier
ac49289451 Merge remote branch 'rrehbeindoi/master' 2011-03-16 14:44:44 +01:00
Fabien Potencier
2a6e299d52 Merge remote branch 'kriswallsmith/http/apache-request' 2011-03-16 14:31:16 +01:00
Kris Wallsmith
a5d8770a54 [HttpFoundation] fixed ApacheRequest, added tests 2011-03-16 06:13:01 -07:00
Fabien Potencier
429d927e8c Merge remote branch 'hason/extensions' 2011-03-16 13:37:06 +01:00
Christophe Coevoet
61abc3d01f Added the global variable in PHP templates too 2011-03-16 13:11:29 +01:00
Fabien Potencier
05ab74e7b9 [SecurityBundle] simplified things 2011-03-16 12:58:52 +01:00
Martin Hason
e441fc95a8 [AbstractDoctrineBundle] fixed typo 2011-03-16 11:33:21 +01:00
Martin Hason
aae492f79b removed unused use statements in DIC extensions 2011-03-16 11:29:41 +01:00
Martin Hason
3bdacafb1b [SecurityBundle] simplified resource location 2011-03-16 10:32:37 +01:00
Fabien Potencier
2cf0601f18 [SecurityBundle] made the anonymous key parameter configurable and random by default 2011-03-16 09:31:28 +01:00
Fabien Potencier
e0df94cb8b [Config] added the possibility to use a Closure for default values 2011-03-16 09:30:51 +01:00
Fabien Potencier
2610e1b699 [SecurityBundle] made user and credentials configuration for X509 authentication 2011-03-16 09:30:48 +01:00
Fabien Potencier
b638cf07a5 [SecurityBundle] made realm configurable for HTTP basic and digest authentication 2011-03-16 09:29:44 +01:00
Christophe Coevoet
5c2e0898d1 [DoctrineBundle] Added a way to register custom DQL functions through the configuration 2011-03-16 02:05:23 +01:00
Fabien Potencier
db27b4d288 [SecurityBundle] made a small tweak to the WDT panel 2011-03-15 22:52:09 +01:00
Fabien Potencier
11f42a82dc [SecurityBundle] added a note about why a user can be logged in but not authenticated 2011-03-15 22:02:26 +01:00
Fabien Potencier
39504fc98d [SecurityBundle] made some tweaks to the security profiler panel 2011-03-15 21:50:56 +01:00
Fabien Potencier
44c95f97a4 [SecurityBundle] fixed profiler template when the user is logged in but has no roles 2011-03-15 21:48:49 +01:00
Fabien Potencier
345e2d39b5 [SecurityBundle] tweaked WDT security tab 2011-03-15 21:02:36 +01:00
Fabien Potencier
29954e3fce Merge remote branch 'maxbeutel/upstream' 2011-03-15 21:00:00 +01:00
Fabien Potencier
d7663e7046 [SecurityBundle] fixed the anonymous listener which was always registered 2011-03-15 20:44:46 +01:00
max
e2542962df reinitialize array so arguments dont stack up 2011-03-15 12:08:13 -07:00
Ray
c2908cdaa0 Allow collection's internal keys to be mixed case 2011-03-15 09:35:40 -05:00
Jan Schumann
c7cde09d1c fixed coding standard 2011-03-15 14:16:19 +01:00
Jan Schumann
bbfb1ffb53 fixed coding standard 2011-03-15 14:08:43 +01:00
Jan Schumann
d1ebc8da9f - Added abstract PDO profiler storage, updated sqlite storage and added a mysql storage.
- Updated profiler config in framework bundle
2011-03-15 14:08:43 +01:00
Fabien Potencier
e5fad94482 [HttpKernel] fixed a unit test 2011-03-15 13:43:45 +01:00
Fabien Potencier
18de62ccb1 Merge remote branch 'schmittjoh/security' 2011-03-15 13:39:34 +01:00
Fabien Potencier
d2c36d57c8 Merge remote branch 'ajessu/HelpMessage' 2011-03-15 13:38:08 +01:00
Fabien Potencier
50e463977b Merge remote branch 'vicb/profiler_again' 2011-03-15 13:37:52 +01:00
Albert Jessurum
bfb7d634bb Improved default message on doctrine:database:drop command 2011-03-15 12:04:33 +01:00
Fabien Potencier
b6528c3ea6 Merge remote branch 'hason/container_class' 2011-03-15 11:41:05 +01:00
Fabien Potencier
be1bfa6e1e Merge remote branch 'hason/kernel' 2011-03-15 11:40:34 +01:00
Martin Hason
ba9653d99a [HttpKernel] optimized getContainerLoader 2011-03-15 11:00:45 +01:00
Igor Wiedler
b9cd2f1f06 [FrameworkBundle] fix addCompilerPass typo 2011-03-15 09:29:59 +01:00
Martin Hason
cef70893df [HttpKernel], [FrameworkBundle] added method getContainerClass and parameter kernel.container_class 2011-03-15 09:16:02 +01:00
Johannes M. Schmitt
98216a9af2 [DependencyInjection] refactored some more exceptions 2011-03-14 21:14:49 +01:00
hhamon
201cb65ecd [SecurityBundle] fixed typo in security_rememberme.xml services definition 2011-03-14 19:46:11 +01:00
Fabien Potencier
14d58d97bc [ClassLoader] made a small change to be consistent with the previous change 2011-03-14 18:46:05 +01:00
Fabien Potencier
f4e4a2aa1b refactored ConfigCache and optimized container:debug task 2011-03-14 18:37:25 +01:00
Fabien Potencier
58bf229856 Merge remote branch 'schmittjoh/security' 2011-03-14 17:51:37 +01:00
Johannes M. Schmitt
a1fb717074 [DependencyInjection] loader fix 2011-03-14 17:45:27 +01:00
Johannes M. Schmitt
4539b47522 [Security] small performance optimization 2011-03-14 17:41:33 +01:00
brikou
56a66bad6c Edited src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php via GitHub 2011-03-14 17:38:19 +01:00
Johannes M. Schmitt
032fa2bde8 [Security] fixed default entity provider 2011-03-14 17:31:29 +01:00