sterntours/vendor/stof/doctrine-extensions-bundle/DependencyInjection/Compiler/ValidateExtensionConfigurationPass.php
2020-07-09 12:49:32 +02:00

23 lines
760 B
PHP

<?php
namespace Stof\DoctrineExtensionsBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
class ValidateExtensionConfigurationPass implements CompilerPassInterface
{
/**
* Validate the DoctrineExtensions DIC extension config.
*
* This validation runs in a discrete compiler pass because it depends on
* DBAL and ODM services, which aren't available during the config merge
* compiler pass.
*
* @param ContainerBuilder $container
*/
public function process(ContainerBuilder $container)
{
$container->getExtension('stof_doctrine_extensions')->configValidate($container);
}
}