function AutowireTestClass::setNamedService
Same name and namespace in other branches
- main core/tests/Drupal/Tests/Core/DependencyInjection/AutowiredInstanceTraitTest.php \Drupal\Tests\Core\DependencyInjection\AutowireTestClass::setNamedService()
Attributes
#[Required]
File
-
core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ AutowiredInstanceTraitTest.php, line 138
Class
- AutowireTestClass
- Test class covering service and parameter autowiring scenarios.
Namespace
Drupal\Tests\Core\DependencyInjectionCode
public function setNamedService(#[Autowire(service: 'setter.service')] $service) : void {
$this->setterNamedService = $service;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.