src/PHPDish/Bundle/ResourceBundle/DependencyInjection/PHPDishResourceExtension.php
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        if ($config['templates_namespace']) {
            $container->setParameter('phpdish.templates_namespace', $config['templates_namespace']);
        }
        // load default services
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('services.yml');

        //AutoConfigure
        $container->registerForAutoconfiguration(ResourceConfigurationInterface::class)
            ->addTag('phpdish.resource_configuration');

        $container->registerForAutoconfiguration(EntitySubscriberInterface::class)
            ->addTag('phpdish.entity_subscriber');

        $container->registerForAutoconfiguration(ServiceManagerInterface::class)
            ->addTag('phpdish.service_manager');
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        if ($config['templates_namespace']) {
            $container->setParameter('phpdish.templates_namespace', $config['templates_namespace']);
        }
        // load default services
        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('services.yml');

        //AutoConfigure
        $container->registerForAutoconfiguration(ResourceConfigurationInterface::class)
            ->addTag('phpdish.resource_configuration');

        $container->registerForAutoconfiguration(EntitySubscriberInterface::class)
            ->addTag('phpdish.entity_subscriber');

        $container->registerForAutoconfiguration(ServiceManagerInterface::class)
            ->addTag('phpdish.service_manager');
    }
{@inheritdoc}