AbstractGearmanDispatcher.php 937 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Gearman Bundle for Symfony2
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. *
  8. * Feel free to edit as you please, and have fun.
  9. *
  10. * @author Marc Morera <yuhu@mmoreram.com>
  11. */
  12. namespace Mmoreram\GearmanBundle\Dispatcher\Abstracts;
  13. use Symfony\Component\EventDispatcher\EventDispatcherInterface;
  14. /**
  15. * Gearman execute methods. All Worker methods
  16. *
  17. * @author Marc Morera <yuhu@mmoreram.com>
  18. *
  19. * @since 2.3.3
  20. */
  21. abstract class AbstractGearmanDispatcher
  22. {
  23. /**
  24. * @var EventDispatcherInterface
  25. *
  26. * Event dispatcher
  27. */
  28. protected $eventDispatcher;
  29. /**
  30. * Construct method
  31. *
  32. * @param EventDispatcherInterface $eventDispatcher Event dispatcher
  33. */
  34. public function __construct(EventDispatcherInterface $eventDispatcher)
  35. {
  36. $this->eventDispatcher = $eventDispatcher;
  37. }
  38. }