Pimcore\Tool\Console::runPhpScriptInBackground PHP Метод

runPhpScriptInBackground() публичный статический Метод

public static runPhpScriptInBackground ( $script, $arguments = "", $outputFile = null ) : string
$script
$arguments
$outputFile
Результат string
    public static function runPhpScriptInBackground($script, $arguments = "", $outputFile = null)
    {
        $cmd = self::buildPhpScriptCmd($script, $arguments);
        $return = Console::execInBackground($cmd, $outputFile);
        return $return;
    }

Usage Example

Пример #1
0
 /**
  *
  */
 public function convert()
 {
     $this->save();
     Console::runPhpScriptInBackground(realpath(PIMCORE_PATH . DIRECTORY_SEPARATOR . "cli" . DIRECTORY_SEPARATOR . "console.php"), "internal:video-converter " . $this->getProcessId());
 }
All Usage Examples Of Pimcore\Tool\Console::runPhpScriptInBackground