public function process(ContainerBuilder $container)
    {
        if (!$container->hasParameter($this->enabledParameter)) {
            return;
        }

        $chainDriverDefService = $this->getChainDriverServiceName($container);
        $chainDriverDef = $container->getDefinition($chainDriverDefService);

        foreach ($this->namespaces as $namespace) {
            $chainDriverDef->addMethodCall('addDriver', [$this->driver, $namespace]);
        }
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasParameter($this->enabledParameter)) {
            return;
        }

        $chainDriverDefService = $this->getChainDriverServiceName($container);
        $chainDriverDef = $container->getDefinition($chainDriverDefService);

        foreach ($this->namespaces as $namespace) {
            $chainDriverDef->addMethodCall('addDriver', [$this->driver, $namespace]);
        }
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> hasParameter ( $ this -> enabledParameter ) ) { return ; } $ chainDriverDefService = $ this -> getChainDriverServiceName ( $ container ) ; $ chainDriverDef = $ container -> getDefinition ( $ chainDriverDefService ) ; foreach ( $ this -> namespaces as $ namespace ) { $ chainDriverDef -> addMethodCall ( 'addDriver' , [ $ this -> driver , $ namespace ] ) ; } }
Register mappings with the metadata drivers.

@param ContainerBuilder $container
Register mappings with the metadata drivers .