예제 #1
0
 /**
  * Finds the PHP executable.
  *
  * @return string
  * @throws FileNotFoundException
  */
 protected function getPhp()
 {
     $phpFinder = new PhpExecutableFinder();
     $phpPath = $phpFinder->find();
     if (!$phpPath) {
         throw new FileNotFoundException('The PHP executable could not be found.');
     }
     return $phpPath;
 }
예제 #2
0
 /**
  * @return null|string
  */
 protected function checkCliRequirements()
 {
     $finder = new PhpExecutableFinder();
     $command = sprintf('%s %schamilo-check.php', $finder->find(), __DIR__ . DIRECTORY_SEPARATOR);
     return shell_exec($command);
 }