コード例 #1
0
 protected function checkFileExistence(Api_Console_ConsoleCommandModel $cmd)
 {
     if ($cmd->getStdin()) {
         if (!file_exists($cmd->getStdin())) {
             throw new AppKitException("File " . $cmd->getStdin() . " does not exist");
         }
     }
     if ($cmd->getPipedCmd()) {
         $this->checkFileExistence($cmd->getPipedCmd());
     }
 }