29 lines
765 B
PHP
29 lines
765 B
PHP
<?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;
|
|
|
|
public function registerBundles(): array
|
|
{
|
|
return [
|
|
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle()
|
|
];
|
|
}
|
|
|
|
protected function configureContainer(ContainerBuilder $container): void
|
|
{
|
|
$container
|
|
->register(TestCommand::class, TestCommand::class)
|
|
->addTag('console.command', ['command' => TestCommand::getDefaultName()])
|
|
;
|
|
|
|
$container->setParameter('kernel.project_dir', __DIR__ . '/..');
|
|
}
|
|
}
|