From 6f275f21313bc48c94a9571579a40d503d0695a4 Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Fri, 21 Jul 2017 15:26:39 +0100 Subject: [PATCH] Type hint on interface for flexibility. It might be a TraceableEventDispatcher instead, for example. --- Service/QueueService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Service/QueueService.php b/Service/QueueService.php index 44308aa..36159f1 100644 --- a/Service/QueueService.php +++ b/Service/QueueService.php @@ -2,7 +2,7 @@ namespace WhiteOctober\QueueBundle\Service; -use Symfony\Component\EventDispatcher\EventDispatcher; +use Symfony\Component\EventDispatcher\EventDispatcherInterface;; use Doctrine\ORM\EntityManager; @@ -22,9 +22,9 @@ class QueueService * Constructor * * @param \Doctrine\ORM\EntityManager $em - * @param EventDispatcher $dispatcher + * @param EventDispatcherInterface $dispatcher */ - public function __construct(EntityManager $em, EventDispatcher $dispatcher) + public function __construct(EntityManager $em, EventDispatcherInterface $dispatcher) { $this->em = $em; $this->dispatcher = $dispatcher;