Skip to content

Commit

Permalink
[FrameworkBundle] Removed unneeded parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
linniksa committed Jun 30, 2012
1 parent 741927b commit 0b02e3c
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -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;
}
Expand All @@ -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();
}
}
Expand Down

0 comments on commit 0b02e3c

Please sign in to comment.