1 | <?php |
||
24 | final class CookieStorage implements StorageInterface, EventSubscriberInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var ParameterBag |
||
28 | */ |
||
29 | private $requestCookies; |
||
30 | |||
31 | /** |
||
32 | * @var ParameterBag |
||
33 | */ |
||
34 | private $responseCookies; |
||
35 | |||
36 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public static function getSubscribedEvents() |
||
52 | |||
53 | /** |
||
54 | * @param GetResponseEvent $event |
||
55 | */ |
||
56 | public function onKernelRequest(GetResponseEvent $event) |
||
65 | |||
66 | /** |
||
67 | * @param FilterResponseEvent $event |
||
68 | */ |
||
69 | public function onKernelResponse(FilterResponseEvent $event) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function has($name) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function get($name, $default = null) |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function set($name, $value) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function remove($name) |
||
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | public function all() |
||
124 | } |
||
125 |