You are here

public function Service::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::__construct()
  2. 9 core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::__construct()

Service constructor.

Parameters

\Drupal\new_dependency_test\Service|null $inner: The service to decorate.

File

core/modules/system/tests/modules/new_dependency_test/src/Service.php, line 25

Class

Service
A service that can decorated itself.

Namespace

Drupal\new_dependency_test

Code

public function __construct(Service $inner = NULL) {
  $this->inner = $inner;
}