for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use \Symfony\Component\HttpKernel\Kernel;
use \Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
$bundles = [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
new \Symfony\Bundle\MonologBundle\MonologBundle(),
new \Symfony\Bundle\TwigBundle\TwigBundle(),
new \PommProject\PommBundle\PommBundle(),
new \AppBundle\AppBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'])) {
$bundles[] = new \Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new \Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new \Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
}
return $bundles;
public function getRootDir()
return __DIR__;
public function getCacheDir()
return __DIR__ . '/../var/cache/' . $this->getEnvironment();
public function getLogDir()
return __DIR__ . '/../var/logs';
public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');