-
Guillaume Perréal authoredcad1ff65
<?php declare(strict_types=1);/** * Copyright (C) 2019 IRSTEA * All rights reserved. * * @copyright 2019 IRSTEA * @author guillaume.perreal */namespace Irstea\NgModelGeneratorBundle\Tests\Fixtures;use ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle;use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;use Irstea\NgModelGeneratorBundle\NgModelGeneratorBundle;use Symfony\Bundle\FrameworkBundle\FrameworkBundle;use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;use Symfony\Bundle\TwigBundle\TwigBundle;use Symfony\Component\Config\Loader\LoaderInterface;use Symfony\Component\DependencyInjection\ContainerBuilder;use Symfony\Component\HttpKernel\Kernel;use Symfony\Component\Routing\RouteCollectionBuilder;/** * Class TestKernel */final class TestKernel extends Kernel{ use MicroKernelTrait; /** * @inheritDoc */ public function registerBundles() { return [ new FrameworkBundle(), new ApiPlatformBundle(), new TwigBundle(), new DoctrineBundle(), new NgModelGeneratorBundle() ]; } /** * @inheritDoc */ public function getProjectDir() { return __DIR__; } /** * @inheritDoc */ protected function configureRoutes(RouteCollectionBuilder $routes) { $routes->import(__DIR__ . '/config/routes.yaml', '', 'yaml'); } /** * @inheritDoc */ protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader) { $loader->load(__DIR__ . '/config/services.yaml', 'yaml'); // TODO: Implement configureContainer() method. }7172
}