Свойство | Тип | Описание | |
---|---|---|---|
$commandManager | |||
$environment | |||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$packageManager | Neos\Flow\Package\PackageManagerInterface |
Метод | Описание | |
---|---|---|
build ( mixed $commandLine ) : |
Builds a CLI request object from a command line. | |
injectCommandManager ( |
||
injectEnvironment ( |
||
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | ||
injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void |
Метод | Описание | |
---|---|---|
extractArgumentNameFromCommandLinePart ( string $commandLinePart ) : string | Extracts the option or argument name from the name / value pair of a command line. | |
getValueOfCurrentCommandLineOption ( string $currentArgument, array &$rawCommandLineArguments, string $expectedArgumentType ) : string | Returns the value of the first argument of the given input array. Shifts the parsed argument off the array. | |
parseRawCommandLineArguments ( array $rawCommandLineArguments, string $controllerObjectName, string $controllerCommandName ) : array | Takes an array of unparsed command line arguments and options and converts it separated by named arguments, options and unnamed arguments. |
protected extractArgumentNameFromCommandLinePart ( string $commandLinePart ) : string | ||
$commandLinePart | string | Part of the command line, e.g. "my-important-option=SomeInterestingValue" |
Результат | string | The lowercased argument name, e.g. "myimportantoption" |
protected getValueOfCurrentCommandLineOption ( string $currentArgument, array &$rawCommandLineArguments, string $expectedArgumentType ) : string | ||
$currentArgument | string | The current argument |
$rawCommandLineArguments | array | |
$expectedArgumentType | string | The expected type of the current argument, because booleans get special attention |
Результат | string | The value of the first argument |
public injectCommandManager ( |
||
$commandManager | ||
Результат | void |
public injectEnvironment ( |
||
$environment | ||
Результат | void |
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | void |
public injectPackageManager ( Neos\Flow\Package\PackageManagerInterface $packageManager ) : void | ||
$packageManager | Neos\Flow\Package\PackageManagerInterface | |
Результат | void |
protected parseRawCommandLineArguments ( array $rawCommandLineArguments, string $controllerObjectName, string $controllerCommandName ) : array | ||
$rawCommandLineArguments | array | The unparsed command parts (such as "--foo") as an array |
$controllerObjectName | string | Object name of the designated command controller |
$controllerCommandName | string | Command name of the recognized command (ie. method name without "Command" suffix) |
Результат | array | All and exceeding command line arguments |
protected CommandManager,Neos\Flow\Cli $commandManager | ||
Результат |
protected Environment,Neos\Flow\Utility $environment | ||
Результат |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |