alltube/classes/Factory/SessionFactory.php
2020-10-21 22:48:05 +02:00

27 lines
395 B
PHP

<?php
/**
* SessionFactory class.
*/
namespace Alltube\Factory;
use Aura\Session\Session;
/**
* Manage sessions.
*/
class SessionFactory
{
/**
* Get the current session.
*
* @return Session
*/
public static function create()
{
$session_factory = new \Aura\Session\SessionFactory();
return $session_factory->newInstance($_COOKIE);
}
}