Skip to content

Commit

Permalink
[FrameworkBundle] Added options auto-start and auto_start to the sess…
Browse files Browse the repository at this point in the history
…ion configuration to allow session to be autostarted.
  • Loading branch information
Henrik Bjørnskov authored and fabpot committed Nov 27, 2010
1 parent 739ebf9 commit 91c5c91
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down

0 comments on commit 91c5c91

Please sign in to comment.