Property | Type | Description | |
---|---|---|---|
$arguments | |||
$commandManager | |||
$commandMethodName | string | Name of the command method | |
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$output | |||
$request | |||
$response |
Method | Description | |
---|---|---|
__construct ( ) | Constructs the command controller | |
getFlowInvocationString ( ) : string | Returns the CLI Flow command depending on the environment | |
injectCommandManager ( |
||
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | Injects the reflection service | |
processRequest ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void | Processes a command line request. |
Method | Description | |
---|---|---|
callCommandMethod ( ) : void | Calls the specified command method and passes the arguments. | |
forward ( string $commandName, string $controllerObjectName = null, array $arguments = [] ) : void | Forwards the request to another command and / or CommandController. | |
initializeCommandMethodArguments ( ) : void | Initializes the arguments array of this controller by creating an empty argument object for each of the method arguments found in the designated command method. | |
mapRequestArgumentsToControllerArguments ( ) : void | Maps arguments delivered by the request object to the local controller arguments. | |
output ( string $text, array $arguments = [] ) : void | Outputs specified text to the console window You can specify arguments that will be passed to the text via sprintf | |
outputFormatted ( string $text = '', array $arguments = [], integer $leftPadding ) : void | Formats the given text to fit into MAXIMUM_LINE_LENGTH and outputs it to the console window | |
outputLine ( string $text = '', array $arguments = [] ) : void | Outputs specified text to the console window and appends a line break | |
quit ( integer $exitCode ) : void | Exits the CLI through the dispatcher and makes sure that Flow is properly shut down. | |
resolveCommandMethodName ( ) : string | Resolves and checks the current command method name | |
sendAndExit ( integer $exitCode ) : void | Sends the response and exits the CLI without any further code execution Should be used for commands that flush code caches. |
protected callCommandMethod ( ) : void | ||
return | void |
public getFlowInvocationString ( ) : string | ||
return | string |
protected initializeCommandMethodArguments ( ) : void | ||
return | void |
public injectCommandManager ( |
||
$commandManager | ||
return | void |
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | void |
protected mapRequestArgumentsToControllerArguments ( ) : void | ||
return | void |
public processRequest ( Neos\Flow\Mvc\RequestInterface $request, Neos\Flow\Mvc\ResponseInterface $response ) : void | ||
$request | Neos\Flow\Mvc\RequestInterface | The request object |
$response | Neos\Flow\Mvc\ResponseInterface | The response, modified by this handler |
return | void |
protected resolveCommandMethodName ( ) : string | ||
return | string | Method name of the current command |
protected sendAndExit ( integer $exitCode ) : void | ||
$exitCode | integer | Exit code to return on exit |
return | void |
protected Arguments,Neos\Flow\Mvc\Controller $arguments | ||
return |
protected CommandManager,Neos\Flow\Cli $commandManager | ||
return |
protected string $commandMethodName | ||
return | string |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |