1
0
mirror of synced 2024-11-29 08:06:03 +03:00
service-bundle/Tests/Fixtures/App/Kernel.php

29 lines
765 B
PHP
Raw Normal View History

2021-03-31 11:00:48 +03:00
<?php
namespace RetailCrm\ServiceBundle\Tests\Fixtures\App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class Kernel extends \Symfony\Component\HttpKernel\Kernel
{
use MicroKernelTrait;
2022-07-20 14:38:42 +03:00
public function registerBundles(): array
2021-03-31 11:00:48 +03:00
{
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle()
];
}
2022-07-20 14:38:42 +03:00
protected function configureContainer(ContainerBuilder $container): void
2021-03-31 11:00:48 +03:00
{
$container
->register(TestCommand::class, TestCommand::class)
->addTag('console.command', ['command' => TestCommand::getDefaultName()])
;
$container->setParameter('kernel.project_dir', __DIR__ . '/..');
}
}