Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | final class CookiesBootloader extends Bootloader implements SingletonInterface, DependedInterface |
||
21 | { |
||
22 | /** @var ConfiguratorInterface */ |
||
23 | private $config; |
||
24 | |||
25 | /** |
||
26 | * @param ConfiguratorInterface $config |
||
27 | */ |
||
28 | public function __construct(ConfiguratorInterface $config) |
||
29 | { |
||
30 | $this->config = $config; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param HttpBootloader $http |
||
35 | */ |
||
36 | public function boot(HttpBootloader $http) |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function defineDependencies(): array |
||
51 | { |
||
52 | return [ |
||
53 | HttpBootloader::class |
||
54 | ]; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Disable protection for given cookie. |
||
59 | * |
||
60 | * @param string $cookie |
||
61 | */ |
||
62 | public function whitelistCookie(string $cookie) |
||
65 | } |
||
66 | } |