Autarky\Config\ConfigProvider::getYamlCachePath PHP Метод

getYamlCachePath() защищенный Метод

protected getYamlCachePath ( Autarky\Config\ConfigInterface $config = null )
$config Autarky\Config\ConfigInterface
    protected function getYamlCachePath(ConfigInterface $config = null)
    {
        if (file_exists($this->configPath . '/path.yml')) {
            throw new \RuntimeException("The 'path' config file cannot be YAML when using the caching YAML config file loader.");
        }
        $config = $config ?: $this->app->getConfig();
        $path = $config->get('path.storage') . '/yaml';
        if (is_dir($path) && is_writable($path)) {
            return $path;
        }
        return null;
    }