Преглед на файлове

[FrameworkBundle] fixed session auto-start option

Fabien Potencier преди 14 години
родител
ревизия
a8685614e0
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

+ 5 - 1
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

@@ -375,7 +375,11 @@ class FrameworkExtension extends Extension
             }
         }
 
-        if (isset($config['auto_start']) || isset($config['auto-start'])) {
+        if (isset($config['auto-start'])) {
+            $config['auto_start'] = $config['auto-start'];
+        }
+
+        if (isset($config['auto_start']) && $config['auto_start']) {
             $container->getDefinition('session')->addMethodCall('start');
         }