function OptionalServiceSystemTestController::__construct
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/system_test/src/Controller/OptionalServiceSystemTestController.php \Drupal\system_test\Controller\OptionalServiceSystemTestController::__construct()
File
-
core/
modules/ system/ tests/ modules/ system_test/ src/ Controller/ OptionalServiceSystemTestController.php, line 16
Class
- OptionalServiceSystemTestController
- A controller that specifies an optional dependency.
Namespace
Drupal\system_test\ControllerCode
public function __construct(#[Autowire('logger.dblog')] public readonly ?DbLog $dbLog) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.