AppKernel.php 798 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Gearman Bundle for Symfony2
  4. *
  5. * @author Marc Morera <yuhu@mmoreram.com>
  6. * @since 2013
  7. */
  8. use Symfony\Component\HttpKernel\Kernel;
  9. use Symfony\Component\Config\Loader\LoaderInterface;
  10. /**
  11. * AppKernel for testing
  12. */
  13. class AppKernel extends Kernel
  14. {
  15. /**
  16. * Only register GearmanBundle
  17. */
  18. public function registerBundles()
  19. {
  20. return array(
  21. new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
  22. new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
  23. new Mmoreram\GearmanBundle\GearmanBundle(),
  24. );
  25. }
  26. /**
  27. * Setup configuration file.
  28. */
  29. public function registerContainerConfiguration(LoaderInterface $loader)
  30. {
  31. $loader->load(dirname(__FILE__) . '/config.yml');
  32. }
  33. }