Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::requireProcessIsStarted

Ensures the process is running or terminated, throws a LogicException if the process has a not started.

Throws

LogicException if the process has not run

3 calls to Process::requireProcessIsStarted()
Process::readPipesForOutput in vendor/symfony/process/Process.php
Reads pipes for the freshest output.
Process::wait in vendor/symfony/process/Process.php
Waits for the process to terminate.
Process::waitUntil in vendor/symfony/process/Process.php
Waits until the callback returns true.

File

vendor/symfony/process/Process.php, line 1615

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

private function requireProcessIsStarted(string $functionName) : void {
    if (!$this->isStarted()) {
        throw new LogicException(\sprintf('Process must be started before calling "%s()".', $functionName));
    }
}
RSS feed
Powered by Drupal