TYPO3
7.6
|
Public Member Functions | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) | |
getAvailableCommands () | |
getCommandByIdentifier ($commandIdentifier) | |
getShortestIdentifierForCommand (Command $command) | |
Protected Member Functions | |
getShortCommandIdentifiers () | |
commandMatchesIdentifier (Command $command, $commandIdentifier) | |
Protected Attributes | |
$objectManager | |
$availableCommands = null | |
$shortCommandIdentifiers = null | |
A helper for CLI commands
http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
Definition at line 22 of file CommandManager.php.
|
protected |
Returns TRUE if the specified command identifier matches the identifier of the specified command. This is the case, if the identifiers are the same or if at least the last two command parts match (case sensitive).
Command | $command | |
string | $commandIdentifier | command identifier in the format foo:bar:baz (all lower case) |
Definition at line 163 of file CommandManager.php.
References Command\getCommandIdentifier().
Referenced by CommandManager\getCommandByIdentifier().
getAvailableCommands | ( | ) |
Returns an array of all commands
Definition at line 53 of file CommandManager.php.
References CommandManager\$availableCommands, and $GLOBALS.
Referenced by CommandManager\getCommandByIdentifier(), and CommandManager\getShortCommandIdentifiers().
getCommandByIdentifier | ( | $commandIdentifier | ) |
Returns a Command that matches the given identifier. If no Command could be found a CommandNotFoundException is thrown If more than one Command matches an AmbiguousCommandIdentifierException is thrown that contains the matched Commands
string | $commandIdentifier | command identifier in the format foo:bar:baz |
\TYPO3\CMS\Extbase\Mvc\Exception\NoSuchCommandException | if no matching command is available |
\TYPO3\CMS\Extbase\Mvc\Exception\AmbiguousCommandIdentifierException | if more than one Command matches the identifier (the exception contains the matched commands) |
Definition at line 83 of file CommandManager.php.
References CommandManager\$availableCommands, CommandManager\commandMatchesIdentifier(), and CommandManager\getAvailableCommands().
|
protected |
Returns an array that contains all available command identifiers and their shortest non-ambiguous alias
Definition at line 129 of file CommandManager.php.
References CommandManager\$shortCommandIdentifiers, and CommandManager\getAvailableCommands().
Referenced by CommandManager\getShortestIdentifierForCommand().
getShortestIdentifierForCommand | ( | Command | $command | ) |
Returns the shortest, non-ambiguous command identifier for the given command
Command | $command | The command |
Definition at line 112 of file CommandManager.php.
References CommandManager\$shortCommandIdentifiers, Command\getCommandIdentifier(), and CommandManager\getShortCommandIdentifiers().
injectObjectManager | ( | \TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager | ) |
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager |
Definition at line 42 of file CommandManager.php.
References CommandManager\$objectManager.
|
protected |
Definition at line 32 of file CommandManager.php.
Referenced by CommandManager\getAvailableCommands(), and CommandManager\getCommandByIdentifier().
|
protected |
Definition at line 27 of file CommandManager.php.
Referenced by CommandManager\injectObjectManager().
|
protected |
Definition at line 37 of file CommandManager.php.
Referenced by CommandManager\getShortCommandIdentifiers(), and CommandManager\getShortestIdentifierForCommand().