public function loadFile($filepath)
{
$file = realpath($filepath);
if ($file === false) {
throw new JitException("Error, the file `'{$filepath}'` doesn't exist.");
}
if ($cached = $this->cached($file)) {
require $cached;
return true;
}
$code = file_get_contents($file);
$timestamp = filemtime($file);
$rewrited = $this->_patchers->process($code, $file);
$cached = $this->cache($file, $rewrited, max($timestamp, $this->_watchedTimestamp) + 1);
require $cached;
return true;
}