| 1 | <?php |
||
| 18 | final class AppKernel extends Kernel |
||
| 19 | { |
||
| 20 | public function registerBundles() |
||
| 21 | { |
||
| 22 | $bundles = [ |
||
| 23 | new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
| 24 | new Symfony\Bundle\SecurityBundle\SecurityBundle(), |
||
| 25 | new Symfony\Bundle\TwigBundle\TwigBundle(), |
||
| 26 | |||
| 27 | new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
||
| 28 | |||
| 29 | new SpomkyLabs\JoseBundle\SpomkyLabsJoseBundle(), |
||
| 30 | new OAuth2FrameworkServerBundle(), |
||
| 31 | new OAuth2Framework\Bundle\Server\Tests\TestBundle\SpomkyLabsTestBundle(), |
||
| 32 | |||
| 33 | new SimpleBus\SymfonyBridge\SimpleBusEventBusBundle(), |
||
| 34 | new SimpleBus\SymfonyBridge\SimpleBusCommandBusBundle(), |
||
| 35 | ]; |
||
| 36 | |||
| 37 | return $bundles; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getCacheDir() |
||
| 41 | { |
||
| 42 | return sys_get_temp_dir().'/OAuth2FrameworkServerTest/'.$this->getEnvironment(); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
| 46 | { |
||
| 47 | $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |