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) (merged0b02e3ce
into741927ba
).
This commit is contained in:
commit
a8f91d417f
@ -33,12 +33,7 @@ class SessionListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
private $container;
|
private $container;
|
||||||
|
|
||||||
/**
|
public function __construct(ContainerInterface $container)
|
||||||
* @var boolean
|
|
||||||
*/
|
|
||||||
private $autoStart;
|
|
||||||
|
|
||||||
public function __construct(ContainerInterface $container, $autoStart = false)
|
|
||||||
{
|
{
|
||||||
$this->container = $container;
|
$this->container = $container;
|
||||||
}
|
}
|
||||||
@ -60,7 +55,7 @@ class SessionListener implements EventSubscriberInterface
|
|||||||
|
|
||||||
$request->setSession($session = $this->container->get('session'));
|
$request->setSession($session = $this->container->get('session'));
|
||||||
|
|
||||||
if ($this->autoStart || $request->hasPreviousSession()) {
|
if ($request->hasPreviousSession()) {
|
||||||
$session->start();
|
$session->start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user