38 lines
948 B
YAML
38 lines
948 B
YAML
name: AsDecorator
|
|
class_comment: null
|
|
dependencies:
|
|
- name: ContainerInterface
|
|
type: class
|
|
source: Symfony\Component\DependencyInjection\ContainerInterface
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: decorates
|
|
- name: priority
|
|
default: '0'
|
|
- name: onInvalid
|
|
default: ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE
|
|
comment: '# * Declares a decorating service.
|
|
|
|
# */
|
|
|
|
# #[\Attribute(\Attribute::TARGET_CLASS)]
|
|
|
|
# class AsDecorator
|
|
|
|
# {
|
|
|
|
# /**
|
|
|
|
# * @param string $decorates The service id to decorate
|
|
|
|
# * @param int $priority The priority of this decoration when multiple decorators
|
|
are declared for the same service
|
|
|
|
# * @param int $onInvalid The behavior to adopt when the decoration is invalid;
|
|
must be one of the {@see ContainerInterface} constants'
|
|
traits:
|
|
- Symfony\Component\DependencyInjection\ContainerInterface
|
|
interfaces: []
|