diff --git a/phpmyfaq/index.php b/phpmyfaq/index.php index 7cb9ca8477..d109fe0792 100755 --- a/phpmyfaq/index.php +++ b/phpmyfaq/index.php @@ -61,15 +61,6 @@ // require __DIR__ . '/src/Bootstrap.php'; -// -// Create Request + Response -// -$request = Request::createFromGlobals(); -$response = new Response(); -$response->headers->set('Content-Type', 'text/html'); -$csrfLogoutToken = Token::getInstance()->getTokenString('logout'); - - // // Service Containers // @@ -83,6 +74,15 @@ $faqConfig = $container->get('phpmyfaq.configuration'); +// +// Create Request + Response +// +$request = Request::createFromGlobals(); +$response = new Response(); +$response->headers->set('Content-Type', 'text/html'); +$csrfLogoutToken = Token::getInstance($container->get('session'))->getTokenString('logout'); + + // // Get language (default: english) //