1 | <?php |
||
15 | class BehatContextSubscriberInitializer implements ContextInitializer, EventSubscriberInterface |
||
16 | { |
||
17 | /** @var EventDispatcherInterface */ |
||
18 | private $behatEventDispatcher; |
||
19 | /** @var BehatContextSubscriberInterface[] */ |
||
20 | private $registeredContextList = []; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @param EventDispatcherInterface $behatEventDispatcher |
||
25 | */ |
||
26 | 2 | public function __construct(EventDispatcherInterface $behatEventDispatcher) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 2 | public function initializeContext(Context $context) |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function getSubscribedEvents() |
||
56 | |||
57 | /** |
||
58 | * Clear contexts subscriber after each feature |
||
59 | */ |
||
60 | public function clearBehatContextSubscriber() |
||
67 | } |
||
68 |