1
0
mirror of synced 2024-11-27 23:36:07 +03:00
service-bundle/Tests/Fixtures/App/Kernel.php
2021-03-31 11:00:48 +03:00

34 lines
935 B
PHP

<?php
namespace RetailCrm\ServiceBundle\Tests\Fixtures\App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class Kernel extends \Symfony\Component\HttpKernel\Kernel
{
use MicroKernelTrait;
public function registerBundles()
{
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle()
];
}
protected function configureContainer(ContainerBuilder $container/*, LoaderInterface $loader*/): void
{
$container
->register(TestCommand::class, TestCommand::class)
->addTag('console.command', ['command' => TestCommand::getDefaultName()])
;
$container->setParameter('kernel.project_dir', __DIR__ . '/..');
}
// public function registerContainerConfiguration(LoaderInterface $loader)
// {
// }
}