sterntours/trunk/_vendor/stof/doctrine-extensions-bundle/DependencyInjection/Compiler/ValidateExtensionConfigurationPass.php
Kevin Adametz 33458b2ca3 Update
2020-03-07 19:46:02 +01: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);
}
}