diff --git a/src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php b/src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php index 0c0260b243fc..b664a7297457 100644 --- a/src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php +++ b/src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php @@ -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 @@ public function onKernelRequest(GetResponseEvent $event) $request->setSession($session = $this->container->get('session')); - if ($this->autoStart || $request->hasPreviousSession()) { + if ($request->hasPreviousSession()) { $session->start(); } }