예제 #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $logFile = \Jambon\Config\Config::get('logger')['LogFile'];
     $this->printFiglet();
     $output->writeln('<info>Watching Logs:</info>');
     $process = new Process('tail -f ' . $logFile);
     $process->setTimeout(0);
     $process->run(function ($type, $buffer) use(&$output) {
         if ('err' === $type) {
             echo 'ERR > ' . $buffer;
         } else {
             echo $buffer;
         }
     });
 }
예제 #2
0
 /**
  *
  * @return string
  */
 private function resolveCustomerFolder()
 {
     $jobModel = $this->getDaoOrFail();
     $customer = $jobModel->getCustomer();
     $uploadFolder = \Jambon\Config\Config::get('filesystem', 'upload-folder');
     return $uploadFolder . DIRECTORY_SEPARATOR . $customer;
 }