You are here

public function InjectedService::__construct in Drupal 9

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

InjectedService constructor.

Parameters

\Drupal\new_dependency_test_with_service\NewService $service: The service of the new module.

File

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

Class

InjectedService
Generic service with a dependency on a service defined in a new module.

Namespace

Drupal\new_dependency_test

Code

public function __construct(NewService $service) {
  $this->service = $service;
}