Permalink
Browse files

[FrameworkBundle] Added options auto-start and auto_start to the sess…

…ion configuration to allow session to be autostarted.
  • Loading branch information...
henrikbjorn authored and fabpot committed Nov 25, 2010
1 parent 739ebf9 commit 91c5c910eb95da5c2ee5d0b67c3ed2387e29db24
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
@@ -315,6 +315,10 @@ protected function registerSessionConfiguration($config, ContainerBuilder $conta
}
}
if (isset($config['auto_start']) || isset($config['auto-start'])) {
$container->getDefinition('session')->addMethodCall('start');
}
if (isset($config['class'])) {
$container->setParameter('session.class', $config['class']);
}

0 comments on commit 91c5c91

Please sign in to comment.