示例#1
0
 public function getLine($filename, $line, $context = 2)
 {
     if (!$this->filesystem->exists($filename)) {
         throw new \RuntimeException('File not found: ' . $filename);
     }
     $file = $this->filesystem->getFile($filename);
     return $file->getLine($line, $context);
 }