platform/api/symfony/Component/DependencyInjection/Attribute/AutowireServiceClosure.yaml
2024-09-02 10:44:11 -07:00

32 lines
799 B
YAML

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: []