public function getCacheOptions() { if ($this->cacheOptions === null) { $this->setCacheOptions(new Options()); } return $this->cacheOptions; }
/** * Create service * * @param Config $config * @return mixed */ public function createService(Config $config) { $options = $config->getCacheOptions(); $storage = new FileSystem($options->getStorageOptions()); return $storage; }