Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
19 | class StorageResetSubscriber implements EventSubscriberInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Storage |
||
23 | */ |
||
24 | protected $storage; |
||
25 | |||
26 | public function __construct(Storage $storage) |
||
27 | { |
||
28 | $this->storage = $storage; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public static function getSubscribedEvents() |
||
35 | { |
||
36 | return [ |
||
37 | ScenarioTested::BEFORE => 'clear', |
||
38 | ]; |
||
39 | } |
||
40 | |||
41 | public function clear() |
||
44 | } |
||
45 | } |
||
46 |