[FrameworkBundle] Removed unneeded parameter

This commit is contained in:
Sergey Linnik 2012-06-30 13:11:07 +04:00
parent 741927baf3
commit 0b02e3ce79

View File

@ -33,12 +33,7 @@ class SessionListener implements EventSubscriberInterface
*/
private $container;
/**
* @var boolean
*/
private $autoStart;
public function __construct(ContainerInterface $container, $autoStart = false)
public function __construct(ContainerInterface $container)
{
$this->container = $container;
}
@ -60,7 +55,7 @@ class SessionListener implements EventSubscriberInterface
$request->setSession($session = $this->container->get('session'));
if ($this->autoStart || $request->hasPreviousSession()) {
if ($request->hasPreviousSession()) {
$session->start();
}
}