Наследование: implements Autarky\Config\LoaderInterface
Пример #1
0
 /**
  * {@inheritdoc}
  */
 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;
 }