1 | <?php |
||
15 | class FileSessionStorage implements SessionStorageInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $sessionPath; |
||
21 | |||
22 | /** |
||
23 | * FileSessionStorage constructor. |
||
24 | * |
||
25 | * @param $sessionPath |
||
26 | */ |
||
27 | public function __construct($sessionPath) |
||
31 | |||
32 | /** |
||
33 | * @param Session $session |
||
34 | * @param UserInterface $user |
||
35 | * @throws SessionDoNotSavedException |
||
36 | */ |
||
37 | public function save(Session $session, UserInterface $user) |
||
48 | |||
49 | /** |
||
50 | * @param UserInterface $user |
||
51 | * @return Session |
||
52 | * @throws SessionDoesNotExistException |
||
53 | */ |
||
54 | public function getActive(UserInterface $user) |
||
71 | } |
||
72 |