function LoggingCommitter::commit

Same name in this branch
  1. 11.x core/modules/package_manager/src/LoggingCommitter.php \Drupal\package_manager\LoggingCommitter::commit()

File

core/modules/package_manager/tests/modules/package_manager_bypass/src/LoggingCommitter.php, line 47

Class

LoggingCommitter
A composer-stager Committer decorator that adds logging.

Namespace

Drupal\package_manager_bypass

Code

public function commit(PathInterface $stagingDir, PathInterface $activeDir, ?PathListInterface $exclusions = NULL, ?OutputCallbackInterface $callback = NULL, ?int $timeout = ProcessInterface::DEFAULT_TIMEOUT) : void {
    $this->saveInvocationArguments($stagingDir, $activeDir, $exclusions?->getAll(), $timeout);
    $this->throwExceptionIfSet();
    $this->inner
        ->commit($stagingDir, $activeDir, $exclusions, $callback, $timeout);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.