Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Commit 96dc657

Browse files
author
Sam Partington
authored
Merge pull request #19 from whiteoctober/type-hint
Type hint on interface for flexibility.
2 parents 85786ac + 6f275f2 commit 96dc657

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Service/QueueService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace WhiteOctober\QueueBundle\Service;
44

5-
use Symfony\Component\EventDispatcher\EventDispatcher;
5+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;;
66

77
use Doctrine\ORM\EntityManager;
88

@@ -22,9 +22,9 @@ class QueueService
2222
* Constructor
2323
*
2424
* @param \Doctrine\ORM\EntityManager $em
25-
* @param EventDispatcher $dispatcher
25+
* @param EventDispatcherInterface $dispatcher
2626
*/
27-
public function __construct(EntityManager $em, EventDispatcher $dispatcher)
27+
public function __construct(EntityManager $em, EventDispatcherInterface $dispatcher)
2828
{
2929
$this->em = $em;
3030
$this->dispatcher = $dispatcher;

0 commit comments

Comments
 (0)