| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Test\Michel\PQueueBundle\Fixtures;
- use Michel\PQueueBundle\PQueueBundle;
- use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
- use Symfony\Component\Config\Loader\LoaderInterface;
- use Symfony\Component\DependencyInjection\ContainerBuilder;
- use Symfony\Component\HttpKernel\Kernel;
- class TestKernel extends Kernel
- {
- public function registerBundles(): iterable
- {
- return [
- new FrameworkBundle(),
- new PQueueBundle(),
- ];
- }
- public function registerContainerConfiguration(LoaderInterface $loader): void
- {
- $confDir = __DIR__ . '/config';
- // Charge la config du framework en mode test
- $loader->load($confDir . '/framework.yaml');
- $loader->load($confDir . '/pqueue.yaml');
- $loader->load($confDir . '/services.yaml');
- }
- public function build(ContainerBuilder $container): void
- {
- parent::build($container);
- }
- public function getProjectDir(): string
- {
- return __DIR__;
- }
- }
|