AbstractGearmanCommand.php 899 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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\Command\Abstracts;
  13. use Symfony\Component\HttpKernel\KernelInterface;
  14. use Symfony\Component\Console\Command\Command;
  15. /**
  16. * Class AbstractGearmanCommand
  17. *
  18. * @since 2.3.1
  19. */
  20. abstract class AbstractGearmanCommand extends Command
  21. {
  22. /**
  23. * @var KernelInterface
  24. *
  25. * Kernel
  26. */
  27. protected $kernel;
  28. /**
  29. * Set kernel
  30. *
  31. * @param KernelInterface $kernel Kernel
  32. *
  33. * @return AbstractGearmanCommand self Object
  34. */
  35. public function setKernel(KernelInterface $kernel)
  36. {
  37. $this->kernel = $kernel;
  38. return $this;
  39. }
  40. }