for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NW\JsonRequestBundle\Tests\Fixtures\app;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function __construct($environment, $debug)
parent::__construct($environment, $debug);
(new Filesystem())->remove($this->getCacheDir());
}
public function registerBundles()
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \NW\JsonRequestBundle\NWJsonRequestBundle(),
];
public function getRootDir()
return __DIR__;
public function getCacheDir()
return '/tmp/symfony-cache';
public function getLogDir()
public function registerContainerConfiguration(LoaderInterface $loader)
$loader->load($this->getRootDir() . '/config/config_test.yml');