Sort of get config to work
This commit is contained in:
30
tests/TestKernel.php
Normal file
30
tests/TestKernel.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pcm\IconBundle\Tests;
|
||||
|
||||
use Pcm\IconBundle\PcmIconBundle;
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
|
||||
class TestKernel extends Kernel
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function registerBundles(): array
|
||||
{
|
||||
return [
|
||||
new PcmIconBundle()
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param LoaderInterface $loader
|
||||
*/
|
||||
public function registerContainerConfiguration(LoaderInterface $loader): void
|
||||
{
|
||||
$loader->load(__DIR__.'/../config/packages/pcm_icon.yaml');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user