예제 #1
0
 /**
  * Checks if the resource needs to be recompiled
  *
  * @param object $resource
  * @param string $dst
  * @return bool
  */
 protected function needToCompile(Resource $resource, $dst)
 {
     if (!$this->filesystem->exists($dst)) {
         return true;
     }
     $dstResource = new Resource($dst);
     return $resource->getCTime() > $dstResource->getCtime();
 }