getCacheContent() public method

Returns the contents of an existing cache file in form of an array.
public getCacheContent ( $api, $class, $version ) : array
$api Name of the API.
$class Name of the class.
$version Version of the class.
return array
示例#1
0
 /**
  * Process the api rest request and return the CallbackResult object.
  *
  * @return CallbackResult
  */
 public function processRequest()
 {
     // get version cache file
     $version = $this->getVersion();
     // get class data from the compiled cache files
     $classData = $this->compilerCache->getCacheContent($this->api, $this->class, $version);
     // match request
     return $this->matchRequest($classData);
 }