api/laravel/Console/ContainerCommandLoader.yaml
2024-09-26 02:03:21 -07:00

82 lines
2.1 KiB
YAML

name: ContainerCommandLoader
class_comment: null
dependencies:
- name: ContainerInterface
type: class
source: Psr\Container\ContainerInterface
- name: Command
type: class
source: Symfony\Component\Console\Command\Command
- name: CommandLoaderInterface
type: class
source: Symfony\Component\Console\CommandLoader\CommandLoaderInterface
- name: CommandNotFoundException
type: class
source: Symfony\Component\Console\Exception\CommandNotFoundException
properties:
- name: container
visibility: protected
comment: '# * The container instance.
# *
# * @var \Psr\Container\ContainerInterface'
- name: commandMap
visibility: protected
comment: '# * A map of command names to classes.
# *
# * @var array'
methods:
- name: __construct
visibility: public
parameters:
- name: container
- name: commandMap
comment: "# * The container instance.\n# *\n# * @var \\Psr\\Container\\ContainerInterface\n\
# */\n# protected $container;\n# \n# /**\n# * A map of command names to classes.\n\
# *\n# * @var array\n# */\n# protected $commandMap;\n# \n# /**\n# * Create a new\
\ command loader instance.\n# *\n# * @param \\Psr\\Container\\ContainerInterface\
\ $container\n# * @param array $commandMap\n# * @return void"
- name: get
visibility: public
parameters:
- name: name
comment: '# * Resolve a command from the container.
# *
# * @param string $name
# * @return \Symfony\Component\Console\Command\Command
# *
# * @throws \Symfony\Component\Console\Exception\CommandNotFoundException'
- name: has
visibility: public
parameters:
- name: name
comment: '# * Determines if a command exists.
# *
# * @param string $name
# * @return bool'
- name: getNames
visibility: public
parameters: []
comment: '# * Get the command names.
# *
# * @return string[]'
traits:
- Psr\Container\ContainerInterface
- Symfony\Component\Console\Command\Command
- Symfony\Component\Console\CommandLoader\CommandLoaderInterface
- Symfony\Component\Console\Exception\CommandNotFoundException
interfaces:
- CommandLoaderInterface