mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-03 08:09:25 +03:00
56 lines
1.4 KiB
PHP
56 lines
1.4 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the ApiDocBundle package.
|
|
*
|
|
* (c) EXSyst
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use EXSyst\Bundle\ApiDocBundle\EXSystApiDocBundle;
|
|
use Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle;
|
|
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
|
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Kernel;
|
|
use Symfony\Component\Routing\RouteCollectionBuilder;
|
|
|
|
class TestKernel extends Kernel
|
|
{
|
|
use MicroKernelTrait;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function registerBundles()
|
|
{
|
|
return [
|
|
new FrameworkBundle(),
|
|
new SensioFrameworkExtraBundle(),
|
|
new EXSystApiDocBundle(),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function configureRoutes(RouteCollectionBuilder $routes)
|
|
{
|
|
$routes->import(__DIR__.'/Controller/', '/', 'annotation');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
|
|
{
|
|
$c->loadFromExtension('framework', [
|
|
'secret' => 'MySecretKey',
|
|
'test' => null,
|
|
]);
|
|
}
|
|
}
|