private function overrideConfigByRegistry(Config $config, $bundleId, $scopePerContext, $scopePerEnvironment)
    {
        $registry = $this->getRegistryConfig($bundleId, $scopePerContext, $scopePerEnvironment);
        if (null !== $registry) {
            $registryConfig = @unserialize($registry->getValue());
            if (is_array($registryConfig)) {
                foreach ($registryConfig as $section => $value) {
                    $config->setSection($section, $value, true);
                }
            }
        }

        return $this;
    }
private function overrideConfigByRegistry(Config $config, $bundleId, $scopePerContext, $scopePerEnvironment)
    {
        $registry = $this->getRegistryConfig($bundleId, $scopePerContext, $scopePerEnvironment);
        if (null !== $registry) {
            $registryConfig = @unserialize($registry->getValue());
            if (is_array($registryConfig)) {
                foreach ($registryConfig as $section => $value) {
                    $config->setSection($section, $value, true);
                }
            }
        }

        return $this;
    }
private function overrideConfigByRegistry ( Config $ config , $ bundleId , $ scopePerContext , $ scopePerEnvironment ) { $ registry = $ this -> getRegistryConfig ( $ bundleId , $ scopePerContext , $ scopePerEnvironment ) ; if ( null !== $ registry ) { $ registryConfig = @ unserialize ( $ registry -> getValue ( ) ) ; if ( is_array ( $ registryConfig ) ) { foreach ( $ registryConfig as $ section => $ value ) { $ config -> setSection ( $ section , $ value , true ) ; } } } return $ this ; }
Overrides configuration of bundle from the registry.

@param  Config  $config              The Config to be extended.
@param  string  $bundleId            The bundle Id.
@param  boolean $scopePerContext     If TRUE use context in registry scope.
@param  boolean $scopePerEnvironment If TRUE use environment in regsitry scope.

@return Configurator
Overrides configuration of bundle from the registry .