phpcs does not like full namespaces

This commit is contained in:
Pierre Rudloff 2022-02-03 20:03:55 +01:00
parent ffd9275500
commit 781b5c8bc2

View file

@ -7,6 +7,7 @@
namespace Alltube\Factory; namespace Alltube\Factory;
use Aura\Session\Session; use Aura\Session\Session;
use Aura\Session\SessionFactory as AuraSessionFactory;
use Slim\Container; use Slim\Container;
/** /**
@ -23,7 +24,7 @@ class SessionFactory
*/ */
public static function create(Container $container): Session public static function create(Container $container): Session
{ {
$session_factory = new \Aura\Session\SessionFactory(); $session_factory = new AuraSessionFactory();
$session = $session_factory->newInstance($_COOKIE); $session = $session_factory->newInstance($_COOKIE);
$session->setCookieParams(['httponly' => true]); $session->setCookieParams(['httponly' => true]);