35 lines
845 B
PHP
35 lines
845 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pcm\GeocodeBundle\Tests;
|
|
|
|
use Pcm\GeocodeBundle\PcmGeocodeBundle;
|
|
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\HttpKernel\Kernel;
|
|
|
|
class AppKernel extends Kernel
|
|
{
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function registerBundles(): array
|
|
{
|
|
return [
|
|
new FrameworkBundle(),
|
|
new PcmGeocodeBundle()
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @param LoaderInterface $loader
|
|
*/
|
|
public function registerContainerConfiguration(LoaderInterface $loader): void
|
|
{
|
|
$loader->load(function (ContainerBuilder $container) {
|
|
$container->prependExtensionConfig('framework', ['test' => true]);
|
|
});
|
|
}
|
|
} |