You are here

public function TestService::__construct in Drupal 10

Same name in this branch
  1. 10 core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService::__construct()
  2. 10 core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService::__construct()

File

core/modules/system/tests/modules/services_defaults_test/src/TestService.php, line 20

Class

TestService
An autowired service to test _defaults.

Namespace

Drupal\services_defaults_test

Code

public function __construct(TestInjectionInterface $test_injection, TestInjection2 $test_injection2) {
  $this->testInjection = $test_injection;
  $this->testInjection2 = $test_injection2;
}