From 2bd127c011846aad69731d1d63535a3d4f100af0 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 30 Aug 2017 19:57:01 +0200 Subject: Use symfony session --- includes/engelsystem_provider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes/engelsystem_provider.php') diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php index 65a319e9..aed331d4 100644 --- a/includes/engelsystem_provider.php +++ b/includes/engelsystem_provider.php @@ -6,6 +6,7 @@ use Engelsystem\Exceptions\Handler as ExceptionHandler; use Engelsystem\Http\Request; use Engelsystem\Renderer\HtmlEngine; use Engelsystem\Renderer\Renderer; +use Symfony\Component\HttpFoundation\Session\Session; /** * This file includes all needed functions, connects to the db etc. @@ -169,7 +170,9 @@ foreach ($includeFiles as $file) { /** * Init application */ -session_start(); +$session = new Session(); +$session->start(); +$request->setSession($session); gettext_init(); -- cgit v1.2.3-70-g09d2