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

35 lines
704 B
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: AsAlias
class_comment: null
dependencies: []
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: id
default: 'null'
- name: public
default: 'false'
comment: '# * An attribute to tell under which alias a service should be registered
or to use the implemented interface if no parameter is given.
# *
# * @author Alan Poulain <contact@alanpoulain.eu>
# */
# #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
# final class AsAlias
# {
# /**
# * @param string|null $id The id of the alias
# * @param bool $public Whether to declare the alias public'
traits: []
interfaces: []