private function loadAndGetBundleConfigByBaseDir($serviceId, $baseDir)
    {
        $configId = str_replace('%bundle_service_id%', $serviceId, BundleInterface::CONFIG_SERVICE_ID_PATTERN);

        $this->loadConfigDefinition($configId, $baseDir);
        $bundleConfig = $this->container->get($configId)->getBundleConfig();
        if (isset($bundleConfig['config_per_site']) && true === $bundleConfig['config_per_site']) {
            $definition = $this->container->getDefinition($configId);
            $definition->addTag('config_per_site');
        }

        return $this->container->get($configId);
    }
private function loadAndGetBundleConfigByBaseDir($serviceId, $baseDir)
    {
        $configId = str_replace('%bundle_service_id%', $serviceId, BundleInterface::CONFIG_SERVICE_ID_PATTERN);

        $this->loadConfigDefinition($configId, $baseDir);
        $bundleConfig = $this->container->get($configId)->getBundleConfig();
        if (isset($bundleConfig['config_per_site']) && true === $bundleConfig['config_per_site']) {
            $definition = $this->container->getDefinition($configId);
            $definition->addTag('config_per_site');
        }

        return $this->container->get($configId);
    }
private function loadAndGetBundleConfigByBaseDir ( $ serviceId , $ baseDir ) { $ configId = str_replace ( '%bundle_service_id%' , $ serviceId , BundleInterface :: CONFIG_SERVICE_ID_PATTERN ) ; $ this -> loadConfigDefinition ( $ configId , $ baseDir ) ; $ bundleConfig = $ this -> container -> get ( $ configId ) -> getBundleConfig ( ) ; if ( isset ( $ bundleConfig [ 'config_per_site' ] ) && true === $ bundleConfig [ 'config_per_site' ] ) { $ definition = $ this -> container -> getDefinition ( $ configId ) ; $ definition -> addTag ( 'config_per_site' ) ; } return $ this -> container -> get ( $ configId ) ; }
Loads and returns bundle's Config.

@param string $serviceId
@param string $baseDir

@return
Loads and returns bundle s Config .