danielrolland /
SyliusEnhancedPromotionsPlugin
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace DanielRolland\SyliusEnhancedPromotionsPlugin\DependencyInjection; |
||
| 6 | |||
| 7 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
| 8 | use Symfony\Component\Config\FileLocator; |
||
| 9 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
| 10 | use Symfony\Component\DependencyInjection\Extension\Extension; |
||
| 11 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
||
| 12 | use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
||
| 13 | |||
| 14 | final class DanielRollandSyliusEnhancedPromotionsExtension extends Extension |
||
| 15 | { |
||
| 16 | public function load(array $config, ContainerBuilder $container): void |
||
| 17 | { |
||
| 18 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 19 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 20 | |||
| 21 | $loader->load('services.xml'); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface |
||
| 25 | { |
||
| 26 | return new Configuration(); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |