merged branch Partugal/patch-1 (PR #4690)

Commits
-------

0b02e3c [FrameworkBundle] Removed unneeded parameter

Discussion
----------

Remove autortart parameter

---------------------------------------------------------------------------

by travisbot at 2012-06-30T09:25:37Z

This pull request [fails](http://travis-ci.org/symfony/symfony/builds/1742561) (merged 0b02e3ce into 741927ba).
This commit is contained in:
Fabien Potencier 2012-06-30 12:04:56 +02:00
commit a8f91d417f

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();
}
}