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

55 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: FactoryCommandLoader
class_comment: '# * A simple command loader using factories to instantiate commands
lazily.
# *
# * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>'
dependencies:
- 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: factories
comment: '# * A simple command loader using factories to instantiate commands lazily.
# *
# * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
# */
# class FactoryCommandLoader implements CommandLoaderInterface
# {
# /**
# * @param callable[] $factories Indexed by command names'
- name: has
visibility: public
parameters:
- name: name
comment: null
- name: get
visibility: public
parameters:
- name: name
comment: null
- name: getNames
visibility: public
parameters: []
comment: null
traits:
- Symfony\Component\Console\Command\Command
- Symfony\Component\Console\Exception\CommandNotFoundException
interfaces:
- CommandLoaderInterface