public static function wait(string $args) : ?SymfonyProcess
  {
    $process = new SymfonyProcess('php ' . Accessor::$appRoot . 'craftsman ' . $args);

    $process->start();
    $process->wait();
    $process->stop();

    return $process;
  }
public static function wait(string $args) : ?SymfonyProcess
  {
    $process = new SymfonyProcess('php ' . Accessor::$appRoot . 'craftsman ' . $args);

    $process->start();
    $process->wait();
    $process->stop();

    return $process;
  }
public static function wait ( string $ args ) : ? SymfonyProcess { $ process = new SymfonyProcess ( 'php ' . Accessor :: $ appRoot . 'craftsman ' . $ args ) ; $ process -> start ( ) ; $ process -> wait ( ) ; $ process -> stop ( ) ; return $ process ; }
Run and wait

@param string $args
@return SymfonyProcess $process
Run and wait