1 | <?php |
||
10 | class SessionCache extends CacheProvider |
||
11 | { |
||
12 | /** @var SessionInterface */ |
||
13 | protected $session; |
||
14 | |||
15 | /** @var KernelInterface */ |
||
16 | protected $kernel; |
||
17 | |||
18 | /** @var array */ |
||
19 | protected $mappingPaths = array(); |
||
20 | |||
21 | /** |
||
22 | * @param SessionInterface $session |
||
23 | * @param KernelInterface $kernel |
||
24 | */ |
||
25 | public function __construct(SessionInterface $session, KernelInterface $kernel) |
||
30 | |||
31 | /** |
||
32 | * @param string $path |
||
33 | * @return $this |
||
34 | */ |
||
35 | public function addPathToScan($path) |
||
43 | |||
44 | /** |
||
45 | * @param string $bundle |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function addBundleToScan($bundle) |
||
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function refresh() |
||
87 | |||
88 | /** |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function defineLastRefresh() |
||
97 | |||
98 | /** |
||
99 | * @return \DateTime|null |
||
100 | */ |
||
101 | public function getLastRefresh() |
||
105 | |||
106 | /** |
||
107 | * @param string $id |
||
108 | * @return string |
||
109 | */ |
||
110 | protected function getSessionId($id) |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | protected function doFetch($id) |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | protected function doContains($id) |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | protected function doSave($id, $data, $lifeTime = 0) |
||
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | protected function doDelete($id) |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | protected function doFlush() |
||
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | protected function doGetStats() |
||
174 | } |
||
175 | |||
176 |