12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Gearman Bundle for Symfony2
- *
- * @author Marc Morera <yuhu@mmoreram.com>
- * @since 2013
- */
- use Symfony\Component\HttpKernel\Kernel;
- use Symfony\Component\Config\Loader\LoaderInterface;
- /**
- * AppKernel for testing
- */
- class AppKernel extends Kernel
- {
- /**
- * Only register GearmanBundle
- */
- public function registerBundles()
- {
- return array(
- new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
- new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
- new Mmoreram\GearmanBundle\GearmanBundle(),
- );
- }
- /**
- * Setup configuration file.
- */
- public function registerContainerConfiguration(LoaderInterface $loader)
- {
- $loader->load(dirname(__FILE__) . '/config.yml');
- }
- }
|