AppKernel.php 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. use Symfony\Component\Config\Loader\LoaderInterface;
  13. use Symfony\Component\HttpKernel\Kernel;
  14. /**
  15. * AppKernel for testing
  16. */
  17. class AppKernel extends Kernel
  18. {
  19. /**
  20. * Only register GearmanBundle
  21. */
  22. public function registerBundles()
  23. {
  24. return array(
  25. new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
  26. new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
  27. new Mmoreram\GearmanBundle\GearmanBundle(),
  28. );
  29. }
  30. /**
  31. * Setup configuration file.
  32. */
  33. public function registerContainerConfiguration(LoaderInterface $loader)
  34. {
  35. $loader->load(dirname(__FILE__) . '/config.yml');
  36. }
  37. }