PhpSigep\Config::getCacheOptions PHP Method

getCacheOptions() public method

public getCacheOptions ( ) : PhpSigep\Cache\Options
return PhpSigep\Cache\Options
    public function getCacheOptions()
    {
        if ($this->cacheOptions === null) {
            $this->setCacheOptions(new Options());
        }
        return $this->cacheOptions;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Create service
  *
  * @param Config $config
  * @return mixed
  */
 public function createService(Config $config)
 {
     $options = $config->getCacheOptions();
     $storage = new FileSystem($options->getStorageOptions());
     return $storage;
 }