api/symfony/Component/Console/CommandLoader/ContainerCommandLoader.yaml

60 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: ContainerCommandLoader
class_comment: '# * Loads commands from a PSR-11 container.
# *
# * @author Robin Chalas <robin.chalas@gmail.com>'
dependencies:
- name: ContainerInterface
type: class
source: Psr\Container\ContainerInterface
- name: Command
type: class
source: Symfony\Component\Console\Command\Command
- name: CommandNotFoundException
type: class
source: Symfony\Component\Console\Exception\CommandNotFoundException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: container
- name: commandMap
comment: '# * Loads commands from a PSR-11 container.
# *
# * @author Robin Chalas <robin.chalas@gmail.com>
# */
# class ContainerCommandLoader implements CommandLoaderInterface
# {
# /**
# * @param array $commandMap An array with command names as keys and service ids
as values'
- name: get
visibility: public
parameters:
- name: name
comment: null
- name: has
visibility: public
parameters:
- name: name
comment: null
- name: getNames
visibility: public
parameters: []
comment: null
traits:
- Psr\Container\ContainerInterface
- Symfony\Component\Console\Command\Command
- Symfony\Component\Console\Exception\CommandNotFoundException
interfaces:
- CommandLoaderInterface