Add more files

This commit is contained in:
Brabli
2022-07-23 17:52:36 +01:00
parent 0acd25a0a4
commit ae5c5fbf71
7 changed files with 101 additions and 0 deletions

19
src/PcmExampleBundle.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Pcm\ExampleBundle;
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 PcmExampleBundle extends AbstractBundle {
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
{
$loader = new YamlFileLoader($builder, new FileLocator(__DIR__.'/../config/'));
$loader->load('services.yml');
}
}