Exemplo n.º 1
0
 /**
  * @param $file
  * @return bool|string
  * @throws \Exception
  */
 protected function readSourceFile($file)
 {
     if (!is_file($file)) {
         throw new \Exception("Trying to load file '{$file}' that does not exist.");
     }
     return $this->io->read($file);
 }
Exemplo n.º 2
0
 /**
  * read source file
  *
  * @param $file
  * @return bool|string
  */
 protected function readSourceFile($file)
 {
     return $this->io->read($file);
 }