You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
520 B
PHP
29 lines
520 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: eater
|
|
* Date: 4/2/16
|
|
* Time: 2:05 PM
|
|
*/
|
|
|
|
namespace Eater\Glim\Service;
|
|
|
|
|
|
use Aura\Session\SessionFactory;
|
|
|
|
class Session extends Main
|
|
{
|
|
/**
|
|
* @param \Slim\Container $c
|
|
* @oaram string name
|
|
* @return \Aura\Session\Session
|
|
*/
|
|
static public function init($c, $name)
|
|
{
|
|
$factory = new SessionFactory();
|
|
$session = $factory->newInstance($_COOKIE);
|
|
$session->setName($c->get('sessionName'));
|
|
|
|
return $session;
|
|
}
|
|
} |