Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (ContainerInterface $container, array $commandMap) | |
add (string $commandName, string $className) | |
get (string $name) | |
getNames () | |
has ($name) | |
Attributs privés | |
$container | |
$commandMap | |
PSR-11 compatible writable command loader.
__construct | ( | ContainerInterface | $container, |
array | $commandMap | ||
) |
Constructor.
ContainerInterface | $container | A container from which to load command services. |
array | $commandMap | An array with command names as keys and service IDs as values. |
Références $container.
add | ( | string | $commandName, |
string | $className | ||
) |
Adds a command to the loader.
string | $commandName | The name of the command to load. |
string | $className | The fully qualified class name of the command. |
Implémente WritableLoaderInterface.
Références $className.
get | ( | string | $name | ) |
Loads a command.
string | $name | The command to load. |
CommandNotFoundException |
Implémente LoaderInterface.
Références $name, et Symfony\Contracts\Service\has().
getNames | ( | ) |
has | ( | $name | ) |
Checks if a command exists.
string | $name | The command to check. |
Implémente LoaderInterface.
Références $name.
|
private |
|
private |