/** * @param HttpKernelInterface $kernel * @param Application $app */ public function __construct(HttpKernelInterface $kernel, Application $app) { $this->kernel = $kernel; $this->session = $app->getContainer()->resolve('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface'); $this->forceStart = $app->getConfig()->get('session.force', false); $this->cookies = $app->getConfig()->get('session.cookies', []); }