|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace FRZB\Component\RequestMapper; |
|
6
|
|
|
|
|
7
|
|
|
use Symfony\Component\Config\FileLocator; |
|
8
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
9
|
|
|
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
|
10
|
|
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
|
11
|
|
|
|
|
12
|
|
|
class RequestMapperExtension extends Extension |
|
13
|
|
|
{ |
|
14
|
|
|
/** @throws \Exception */ |
|
15
|
1 |
|
public function load(array $configs, ContainerBuilder $container): void |
|
16
|
|
|
{ |
|
17
|
1 |
|
(new YamlFileLoader($container, new FileLocator(__DIR__.'/Resources/config')))->load('services.yaml'); |
|
18
|
1 |
|
} |
|
19
|
|
|
} |
|
20
|
|
|
|