Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPass::enabled
Determine whether this mapping should be activated or not. This allows to take this decision with the container builder available.
This default implementation checks if the class has the enabledParameter configured and if so if that parameter is present in the container.
Signature
protected function enabled(ContainerBuilder
$container )
Parameters
$container
— Symfony\Component\DependencyInjection\ContainerBuilder
Returns
- boolean
- whether this compiler pass really should register the mappings