1 | <?php |
||
9 | class FailureSubscriber implements EventSubscriberInterface |
||
10 | { |
||
11 | protected $producer; |
||
12 | protected $name; |
||
13 | |||
14 | /** |
||
15 | * @param Producer $producer |
||
16 | * @param string $name |
||
17 | */ |
||
18 | 1 | public function __construct(Producer $producer, $name = 'failed') |
|
23 | |||
24 | /** |
||
25 | * @param RejectEnvelopeEvent $event |
||
26 | */ |
||
27 | 1 | public function onReject(RejectEnvelopeEvent $event) |
|
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | public static function getSubscribedEvents() |
||
44 | } |
||
45 |