function Service::__construct
Same name in other branches
- 9 core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::__construct()
- 8.9.x core/modules/system/tests/modules/new_dependency_test/src/Service.php \Drupal\new_dependency_test\Service::__construct()
- 10 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 27
Class
- Service
- A service that can decorated itself.
Namespace
Drupal\new_dependency_testCode
public function __construct(?Service $inner = NULL) {
$this->inner = $inner;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.