| 1 | <?php |
||
| 2 | |||
| 3 | namespace Devmachine\Bundle\ServicesInjectorBundle\Tests\Functional; |
||
| 4 | |||
| 5 | use Devmachine\Bundle\ServicesInjectorBundle\DevmachineServicesInjectorBundle; |
||
| 6 | use Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle; |
||
| 7 | use Symfony\Bundle\FrameworkBundle\FrameworkBundle; |
||
| 8 | use Symfony\Component\Config\Loader\LoaderInterface; |
||
| 9 | use Symfony\Component\HttpKernel\Kernel; |
||
| 10 | |||
| 11 | class TestKernel extends Kernel |
||
| 12 | { |
||
| 13 | public function __construct() |
||
| 14 | { |
||
| 15 | parent::__construct('test', true); |
||
| 16 | |||
| 17 | $this->tempDir = __DIR__.'/temp'; |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 18 | } |
||
| 19 | |||
| 20 | public function registerBundles() |
||
| 21 | { |
||
| 22 | return [ |
||
| 23 | new FrameworkBundle(), |
||
| 24 | new SensioFrameworkExtraBundle(), |
||
| 25 | new DevmachineServicesInjectorBundle(), |
||
| 26 | ]; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getCacheDir() |
||
| 30 | { |
||
| 31 | return $this->tempDir.'/cache'; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getLogDir() |
||
| 35 | { |
||
| 36 | return $this->tempDir.'/logs'; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
| 40 | { |
||
| 41 | $loader->load(__DIR__.'/config.yml'); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |