1 | <?php |
||
14 | class BehatContextSubscriberInitializer implements ContextInitializer, EventSubscriberInterface |
||
15 | { |
||
16 | /** @var EventDispatcherInterface */ |
||
17 | private $behatEventDispatcher; |
||
18 | /** @var BehatContextSubscriberInterface[] */ |
||
19 | private $registeredContextList = []; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @param EventDispatcherInterface $behatEventDispatcher |
||
24 | */ |
||
25 | 2 | public function __construct(EventDispatcherInterface $behatEventDispatcher) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 2 | public function initializeContext(Context $context) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public static function getSubscribedEvents() |
||
52 | |||
53 | /** |
||
54 | * Clear contexts subscriber after each feature |
||
55 | */ |
||
56 | public function clearBehatContextSubscriber() |
||
63 | } |
||
64 |