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

Breadcrumb

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

function ProcessExecutor::execute

runs a process on the commandline

Parameters

string|non-empty-list<string> $command the command to execute:

mixed $output the output will be written into this var if passed by ref: if a callable is passed it will be used as output handler

null|string $cwd the working directory:

Return value

int statuscode

File

vendor/composer/composer/src/Composer/Util/ProcessExecutor.php, line 92

Class

ProcessExecutor
@author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Util

Code

public function execute($command, &$output = null, ?string $cwd = null) : int {
    if (func_num_args() > 1) {
        return $this->doExecute($command, $cwd, false, $output);
    }
    return $this->doExecute($command, $cwd, false);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal