<?php declare(strict_types=1); namespace Jose\Tests\Bundle\JoseFramework; /* * The MIT License (MIT) * * Copyright (c) 2014-2019 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ use Jose\Bundle\JoseFramework\JoseFrameworkBundle; use Jose\Tests\Bundle\JoseFramework\TestBundle\TestBundle; use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpKernel\Bundle\BundleInterface; use Symfony\Component\HttpKernel\Kernel; class AppKernel extends Kernel { public function __construct(string $environment) { parent::__construct($environment, false); } /** * @return BundleInterface[] */ public function registerBundles(): array { return [new FrameworkBundle(), new JoseFrameworkBundle(), new TestBundle()]; } public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml'); } }