1 | <?php |
||
13 | class ManageFailedEventSubscriber implements EventSubscriberInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var EventManagerInterface |
||
17 | */ |
||
18 | private $eventManager; |
||
19 | |||
20 | /** |
||
21 | * @param EventManagerInterface $eventManager |
||
22 | */ |
||
23 | public function __construct(EventManagerInterface $eventManager) |
||
27 | |||
28 | /** |
||
29 | * Returns an array of event names this subscriber wants to listen to. |
||
30 | * |
||
31 | * The array keys are event names and the value can be: |
||
32 | * |
||
33 | * * The method name to call (priority defaults to 0) |
||
34 | * * An array composed of the method name to call and the priority |
||
35 | * * An array of arrays composed of the method names to call and respective |
||
36 | * priorities, or 0 if unset |
||
37 | * |
||
38 | * For instance: |
||
39 | * |
||
40 | * * array('eventName' => 'methodName') |
||
41 | * * array('eventName' => array('methodName', $priority)) |
||
42 | * * array('eventName' => array(array('methodName1', $priority), array('methodName2')) |
||
43 | * |
||
44 | * @return array The event names to listen to |
||
45 | * |
||
46 | * @api |
||
47 | */ |
||
48 | public static function getSubscribedEvents() |
||
54 | |||
55 | /** |
||
56 | * @param FailProcessedEvent $processedEvent |
||
57 | */ |
||
58 | public function onFail(FailProcessedEvent $processedEvent) |
||
68 | } |
||
69 |