| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Extension implements ExtensionInterface |
||
| 14 | { |
||
| 15 | public function load(array $config, ContainerBuilder $container): void |
||
| 16 | { |
||
| 17 | $configProcessor = new Processor(); |
||
| 18 | $config = $configProcessor->processConfiguration(new Configuration(), $config); |
||
| 19 | |||
| 20 | $container->setParameter('gnutix_library.source_file_path', $config['source_file_path']); |
||
| 21 | |||
| 22 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 23 | $loader->load('services.yml'); |
||
| 24 | |||
| 25 | $container->setAliases($this->getLibraryAliases($config['source_file_path'])); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getNamespace(): string |
||
| 29 | { |
||
| 30 | return ''; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getXsdValidationBasePath(): string |
||
| 34 | { |
||
| 35 | return ''; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getAlias(): string |
||
| 41 | } |
||
| 42 | |||
| 43 | private function getLibraryAliases(string $sourceFilePath): array |
||
| 44 | { |
||
| 57 |