eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Contextualizer::mapReservedScopeArray PHP Метод

mapReservedScopeArray() приватный Метод

"Reserved scope" can typically be ConfigResolver::SCOPE_DEFAULT or ConfigResolver::SCOPE_GLOBAL.
private mapReservedScopeArray ( string $id, array $config, string $scope )
$id string
$config array
$scope string
    private function mapReservedScopeArray($id, array $config, $scope)
    {
        if (isset($config[$this->siteAccessNodeName][$scope][$id]) && !empty($config[$this->siteAccessNodeName][$scope][$id])) {
            $key = "{$this->namespace}.{$scope}.{$id}";
            $value = $config[$this->siteAccessNodeName][$scope][$id];
            if ($this->container->hasParameter($key)) {
                $value = array_merge($this->container->getParameter($key), $value);
            }
            $this->container->setParameter($key, $value);
        }
    }