Add start of IconExtension class

This commit is contained in:
Brabli
2022-07-23 19:53:26 +01:00
parent ae5c5fbf71
commit b5b51132f3
5 changed files with 67 additions and 10 deletions

19
src/PcmIconBundle.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Pcm\IconBundle;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
class PcmIconBundle extends AbstractBundle {
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
{
$loader = new YamlFileLoader($builder, new FileLocator(__DIR__.'/../config/'));
$loader->load('services.yml');
}
}