Autarky\Http\SessionMiddleware::__construct PHP Method

__construct() public method

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Application $app )
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
$app Autarky\Application
    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', []);
    }