Autarky\Config\Loaders\CachingYamlFileLoader::load PHP Метод

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

public load ( $path )
    public function load($path)
    {
        $cachePath = $this->cacheDir . '/' . md5($path);
        if ($this->shouldLoadCache($path, $cachePath)) {
            return require $cachePath;
        }
        $data = parent::load($path);
        $this->filesys->write($cachePath, '<?php return ' . var_export($data, true) . ";\n");
        return $data;
    }