You are here

protected property ServiceWithDependency::$service in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/new_dependency_test/src/ServiceWithDependency.php \Drupal\new_dependency_test\ServiceWithDependency::service
  2. 10 core/modules/system/tests/modules/new_dependency_test/src/ServiceWithDependency.php \Drupal\new_dependency_test\ServiceWithDependency::service

The injected service.

Type: \Drupal\new_dependency_test\InjectedService

File

core/modules/system/tests/modules/new_dependency_test/src/ServiceWithDependency.php, line 17

Class

ServiceWithDependency
Service that gets the other service of the same module injected.

Namespace

Drupal\new_dependency_test

Code

protected $service;