function AutowireRequiredServiceTestClass::__construct
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php \Drupal\Tests\Core\DependencyInjection\AutowireRequiredServiceTestClass::__construct()
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ AutowiredInstanceTraitTest.php, line 157
Class
- AutowireRequiredServiceTestClass
- Test class for autowiring a required service.
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function __construct(public readonly \stdClass $service) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.