Add has() function to session

This commit is contained in:
Greyscale 2020-07-21 19:26:40 +02:00
parent 00d73dc1a7
commit 3c20195b30

View file

@ -127,6 +127,11 @@ class SessionService implements \SessionHandlerInterface
return true;
}
public function has(string $key) : bool
{
return isset($_SESSION[$key]);
}
public function get(string $key)
{
$this->initSession();