stream = getcwd() . '/cache'; } } /** * Create cache pool instance * * @return \Psr\Cache\CacheItemPoolInterface */ public function createPool(): ?CacheItemPoolInterface { if (is_string($this->pool) && !class_exists($this->pool)) { throw new Exception( "Cache pool driver does not exist. Given='{$this->pool}'" ); } if (!$this->enabled) { return null; } // Create a filesystem pool if ($this->type == 'filesystem' && $this->pool == self::DEFAULT_DRIVER) { return new $this->pool($this->ttl, 0, $this->stream); } // Instanciate a pool with a custom driver name if (is_string($this->pool)) { return new $this->pool(); } // An instanciated pool has been given as parameter if ($this->pool instanceof CacheItemPoolInterface) { return $this->pool; } // An instanciated pool has been given as parameter but is not // Psr\Cache compliant if (is_object($this->pool) && !($this->pool instanceof CacheItemPoolInterface) ) { $message = sprintf( "Given cache instance '%s' does not respect '%s' definition.", get_class($this->pool), CacheItemPoolInterface::class ); throw new Exception($message); } // Finally throw an exception because cache configuration does // not satisfy requirements $message = sprintf( "Cache pool has not been instanciated. Given parameter '%s'", $this->pool ); throw new Exception($message); } /** * Get TTL value * * @return int */ public function getTtl() { return $this->ttl; } } __halt_compiler();----SIGNATURE:----tXbNJNUnoyhzXpTkccfHQt1KbRz2Bv7TjlZuODmZqlDA9w4FnvLdr6MW/rgsRupNgVwVVV7/jT6DC80ai8oPsZodifM/klg7/v4H25eCqE1SM6Y6o8duBlyR0IgMFhNPh1R/FBZnEtHrPLBQq5kCrcW75QTtLpA5Q39OeUYy3fECaoHnwJjd6CBd/tgNz5ygsutWc+YwmbvUvaKygoy8bFkUU1gyVAuqroZfLLvaUfvNcq/9rDUCHUELo2BxinpmfHVFQstMRIyOXS3NkiEeKv1ZznZIVFvGrodv08bWcHQbH75zew9UqQRFafFEyoWrm8SrhXnVc5Evr4B5bvydQ/qQntY5gkZUkyTacFwPJmGj2ZMbSIKXCYl412W++3oxUbyw62skGJn58csuBsBqZMcG9Y76x9jgCC4ZSyqHUpo6N11ZSroBFDW9nnSGGGOVof9fwDqF+GoH4+suHZBVSZIyfZy/g9ZFXIB/ID5ylLv4Cgnh/smao5HoB0ufG29E3BkmDhbXgXPOMCE/wb5CSVcoGT/SfogR7E0FEBvhpd9s0+rL7DqnimR1hDxf8YukymFseWy8oVvo6rj8kDB2yUTV8AUJxEidbEXGp7naG/jzVcaAr2Bk5hAklztj5k1u/BT7RoEoc++b64BjwHFVTyo/8HSwZuEslwYYQwrvHVk=----ATTACHMENT:----NTgwNDgwNzM4MDgyNzA3OSAzNDA4NDI2MTg5NDQ0MTA0IDc0NjA1MzQzMjcxNDg0Njk=