File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Console
Upload
[..]
Application.php (9.3 KB)
Edit
Rename
Del
Attributes/
Rename
Del
Command.php (10.48 KB)
Edit
Rename
Del
Concerns/
Rename
Del
ConfirmableTrait.php (1.38 KB)
Edit
Rename
Del
ContainerCommandLoader.php (1.85 KB)
Edit
Rename
Del
Contracts/
Rename
Del
Events/
Rename
Del
MigrationGeneratorCommand.php (2.43 KB)
Edit
Rename
Del
OutputStyle.php (4.5 KB)
Edit
Rename
Del
Prohibitable.php (956 B)
Edit
Rename
Del
PromptValidationException.php (122 B)
Edit
Rename
Del
QuestionHelper.php (2.57 KB)
Edit
Rename
Del
Scheduling/
Rename
Del
Signals.php (3.44 KB)
Edit
Rename
Del
View/
Rename
Del
composer.json (1.71 KB)
Edit
Rename
Del
resources/
Rename
Del
Edit: ContainerCommandLoader.php
<?php namespace Illuminate\Console; use Psr\Container\ContainerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\CommandLoader\CommandLoaderInterface; use Symfony\Component\Console\Exception\CommandNotFoundException; class ContainerCommandLoader implements CommandLoaderInterface { /** * The container instance. * * @var \Psr\Container\ContainerInterface */ protected $container; /** * A map of command names to classes. * * @var array<string, \Illuminate\Console\Command|string> */ protected $commandMap; /** * Create a new command loader instance. * * @param \Psr\Container\ContainerInterface $container * @param array<string, \Illuminate\Console\Command|string> $commandMap */ public function __construct(ContainerInterface $container, array $commandMap) { $this->container = $container; $this->commandMap = $commandMap; } /** * Resolve a command from the container. * * @param string $name * @return \Symfony\Component\Console\Command\Command * * @throws \Symfony\Component\Console\Exception\CommandNotFoundException */ public function get(string $name): Command { if (! $this->has($name)) { throw new CommandNotFoundException(sprintf('Command "%s" does not exist.', $name)); } return $this->container->get($this->commandMap[$name]); } /** * Determines if a command exists. * * @param string $name * @return bool */ public function has(string $name): bool { return $name && isset($this->commandMap[$name]); } /** * Get the command names. * * @return string[] */ public function getNames(): array { return array_keys($this->commandMap); } }
Simpan