eMAGTechLabs /
RabbitMqBundle
| 1 | <?php |
||
| 2 | |||
| 3 | namespace OldSound\RabbitMqBundle; |
||
| 4 | |||
| 5 | use OldSound\RabbitMqBundle\Event\AbstractAMQPEvent; |
||
| 6 | use OldSound\RabbitMqBundle\Event\AMQPEvent; |
||
|
0 ignored issues
–
show
|
|||
| 7 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
||
| 8 | use Symfony\Contracts\EventDispatcher\EventDispatcherInterface as ContractsEventDispatcherInterface; |
||
| 9 | |||
| 10 | trait EventDispatcherAwareTrait |
||
| 11 | { |
||
| 12 | /** @var EventDispatcherInterface|null */ |
||
| 13 | protected $eventDispatcher = null; |
||
| 14 | |||
| 15 | public function setEventDispatcher(EventDispatcherInterface $eventDispatcher) |
||
| 16 | { |
||
| 17 | $this->eventDispatcher = $eventDispatcher; |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function dispatchEvent(string $eventName, AbstractAMQPEvent $event) |
||
| 21 | { |
||
| 22 | if (null !== $this->eventDispatcher) { |
||
| 23 | $this->eventDispatcher->dispatch($event, $eventName); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getEventDispatcher(): ?EventDispatcherInterface |
||
| 28 | { |
||
| 29 | return $this->eventDispatcher; |
||
| 30 | } |
||
| 31 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths