Exemplo n.º 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;
 }
Exemplo n.º 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);
 }