Sulu\Bundle\PreviewBundle\Preview\Renderer\PreviewKernel::registerContainerConfiguration PHP Метод

registerContainerConfiguration() публичный Метод

public registerContainerConfiguration ( Symfony\Component\Config\Loader\LoaderInterface $loader )
$loader Symfony\Component\Config\Loader\LoaderInterface
    public function registerContainerConfiguration(LoaderInterface $loader)
    {
        parent::registerContainerConfiguration($loader);
        if (in_array($this->getEnvironment(), ['dev', 'test'])) {
            $loader->load(implode(DIRECTORY_SEPARATOR, [__DIR__, '..', '..', 'Resources', 'config', 'config_preview_dev.yml']));
        }
        $loader->load(implode(DIRECTORY_SEPARATOR, [__DIR__, '..', '..', 'Resources', 'config', 'config_preview.yml']));
    }