*/ use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpKernel\Kernel; /** * 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'); } }