소스 검색

[Foundation] made a small optimization

Fabien Potencier 15 년 전
부모
커밋
2748c48ae0
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/Symfony/Foundation/Bundle/KernelBundle.php
  2. 1 1
      src/Symfony/Foundation/bootstrap.php

+ 1 - 1
src/Symfony/Foundation/Bundle/KernelBundle.php

@@ -41,7 +41,7 @@ class KernelBundle extends Bundle
       $configuration->setDefinition('event_dispatcher', $configuration->findDefinition('debug.event_dispatcher'));
     }
 
-    $container->merge($configuration);
+    return $configuration;
   }
 
   public function boot(ContainerInterface $container)

+ 1 - 1
src/Symfony/Foundation/bootstrap.php

@@ -63,7 +63,7 @@ class KernelBundle extends Bundle
       $configuration->setDefinition('event_dispatcher', $configuration->findDefinition('debug.event_dispatcher'));
     }
 
-    $container->merge($configuration);
+    return $configuration;
   }
 
   public function boot(ContainerInterface $container)