protected function __construct() { parent::__construct(); $gantry = Gantry::instance(); if (isset($gantry['file.yaml.cache.path'])) { $this->setCachePath($gantry['file.yaml.cache.path']); } }
protected function __construct() { parent::__construct(); $gantry = Gantry::instance(); /** @var Config $global */ $global = $gantry['global']; if (!$global->get('compile_yaml', 1)) { $this->caching(false); } if (isset($gantry['file.yaml.cache.path'])) { $this->setCachePath($gantry['file.yaml.cache.path']); } }