File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed 
src/Symfony/Bundle/ZendBundle/DependencyInjection Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,21 @@ class ZendExtension extends Extension
3737 */ 
3838 public  function  load (array  $ configsContainerBuilder $ container
3939 {
40-  $ loadernew  XmlFileLoader ($ containernew  FileLocator (__DIR__ .'/../Resources/config ' ));
41-  $ loaderload ('logger.xml ' );
42-  $ containersetAlias ('logger ' , 'zend.logger ' );
43- 
40+  $ firsttrue ;
4441 foreach  ($ configsas  $ config
45-  if  (isset ($ config'logger ' ])) {
46-  $ this -> registerLoggerConfiguration ( $ config ,  $ container ) ;
42+  if  (! isset ($ config'logger ' ])) {
43+  continue ;
4744 }
45+ 
46+  if  ($ first
47+  $ firstfalse ;
48+ 
49+  $ loadernew  XmlFileLoader ($ containernew  FileLocator (__DIR__ .'/../Resources/config ' ));
50+  $ loaderload ('logger.xml ' );
51+  $ containersetAlias ('logger ' , 'zend.logger ' );
52+  }
53+ 
54+  $ this registerLoggerConfiguration ($ config$ container
4855 }
4956 }
5057
                         You can’t perform that action at this time. 
           
                  
0 commit comments