Exemplo n.º 1
0
 /**
  * Define if asset is not valid.
  *
  * @param string $asset       Full path to asset
  *
  * @param string $cachedAsset Full path to cached asset
  *
  * @return bool True if cached asset is valid
  */
 protected function isValid($asset, $cachedAsset)
 {
     // If cached asset does not exists or is invalid
     return $this->fileManager->exists($cachedAsset) !== false && $this->fileManager->lastModified($cachedAsset) === $this->fileManager->lastModified($asset);
 }