function LoggingBeginner::__construct

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

Constructs a Beginner object.

Parameters

\Drupal\Core\State\StateInterface $state: The state service.

\PhpTuf\ComposerStager\API\Core\BeginnerInterface $inner: The decorated beginner service.

File

core/modules/package_manager/tests/modules/package_manager_bypass/src/LoggingBeginner.php, line 39

Class

LoggingBeginner
A composer-stager Beginner decorator that adds logging.

Namespace

Drupal\package_manager_bypass

Code

public function __construct(StateInterface $state, BeginnerInterface $inner) {
    $this->state = $state;
    $this->inner = $inner;
}

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