32 lines
799 B
YAML
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: []
|