|
@@ -11,6 +11,8 @@
|
|
|
|
|
|
namespace Symfony\Bundle\FrameworkBundle\Listener;
|
|
|
|
|
|
+use Symfony\Component\DependencyInjection\ContainerInterface;
|
|
|
+
|
|
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
|
|
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
|
|
|
|
@@ -26,6 +28,11 @@ class SessionInitializingListener
|
|
|
{
|
|
|
private $container;
|
|
|
|
|
|
+ public function __construct(ContainerInterface $container)
|
|
|
+ {
|
|
|
+ $this->container = $container;
|
|
|
+ }
|
|
|
+
|
|
|
public function onCoreRequest(GetResponseEvent $event)
|
|
|
{
|
|
|
if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
|