api/symfony/Component/DependencyInjection/Attribute/AutowireServiceClosure.yaml

33 lines
799 B
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: AutowireServiceClosure
class_comment: null
dependencies:
- name: ServiceClosureArgument
type: class
source: Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument
- name: Reference
type: class
source: Symfony\Component\DependencyInjection\Reference
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: service
comment: '# * Attribute to wrap a service in a closure that returns it.
# */
# #[\Attribute(\Attribute::TARGET_PARAMETER)]
# class AutowireServiceClosure extends Autowire
# {
# /**
# * @param string $service The service id to wrap in the closure'
traits:
- Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument
- Symfony\Component\DependencyInjection\Reference
interfaces: []