PHP 클래스 Neos\Flow\Cli\CommandManager

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$availableCommands array
$bootstrap Neos\Flow\Core\Bootstrap
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$shortCommandIdentifiers array

공개 메소드들

메소드 설명
getAvailableCommands ( ) : array Returns an array of all commands
getCommandByIdentifier ( string $commandIdentifier ) : Command Returns a Command that matches the given identifier.
getCommandControllerMethodArguments ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
getCommandMethodParameters ( string $controllerObjectName, string $commandMethodName ) : array Get the possible parameters for the command specified by CommandController and method name.
getCommandsByIdentifier ( string $commandIdentifier ) : array Returns an array of Commands that matches the given identifier.
getShortestIdentifierForCommand ( Command $command ) : string Returns the shortest, non-ambiguous command identifier for the given command
injectBootstrap ( Bootstrap $bootstrap ) : void
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void

보호된 메소드들

메소드 설명
commandMatchesIdentifier ( Command $command, string $commandIdentifier ) : boolean Returns TRUE if the specified command identifier matches the identifier of the specified command.
getShortCommandIdentifiers ( ) : array Returns an array that contains all available command identifiers and their shortest non-ambiguous alias

메소드 상세

commandMatchesIdentifier() 보호된 메소드

This is the case, if - the identifiers are the same - if at least the last two command parts match (case sensitive) or - if only the package key is specified and matches the commands package key The first part (package key) can be reduced to the last subpackage, as long as the result is unambiguous.
protected commandMatchesIdentifier ( Command $command, string $commandIdentifier ) : boolean
$command Command
$commandIdentifier string command identifier in the format foo:bar:baz (all lower case)
리턴 boolean TRUE if the specified command identifier matches this commands identifier

getAvailableCommands() 공개 메소드

Returns an array of all commands
public getAvailableCommands ( ) : array
리턴 array

getCommandByIdentifier() 공개 메소드

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
public getCommandByIdentifier ( string $commandIdentifier ) : Command
$commandIdentifier string command identifier in the format foo:bar:baz
리턴 Command

getCommandControllerMethodArguments() 공개 정적인 메소드

public static getCommandControllerMethodArguments ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 array Array of method arguments per controller and method.

getCommandMethodParameters() 공개 메소드

Get the possible parameters for the command specified by CommandController and method name.
public getCommandMethodParameters ( string $controllerObjectName, string $commandMethodName ) : array
$controllerObjectName string
$commandMethodName string
리턴 array

getCommandsByIdentifier() 공개 메소드

If no Command could be found, an empty array is returned
public getCommandsByIdentifier ( string $commandIdentifier ) : array
$commandIdentifier string command identifier in the format foo:bar:baz
리턴 array

getShortCommandIdentifiers() 보호된 메소드

Returns an array that contains all available command identifiers and their shortest non-ambiguous alias
protected getShortCommandIdentifiers ( ) : array
리턴 array in the format array('full.command:identifier1' => 'alias1', 'full.command:identifier2' => 'alias2')

getShortestIdentifierForCommand() 공개 메소드

Returns the shortest, non-ambiguous command identifier for the given command
public getShortestIdentifierForCommand ( Command $command ) : string
$command Command The command
리턴 string The shortest possible command identifier

injectBootstrap() 공개 메소드

public injectBootstrap ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
리턴 void

injectObjectManager() 공개 메소드

public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 void

프로퍼티 상세

$availableCommands 보호되어 있는 프로퍼티

protected array $availableCommands
리턴 array

$bootstrap 보호되어 있는 프로퍼티

protected Bootstrap,Neos\Flow\Core $bootstrap
리턴 Neos\Flow\Core\Bootstrap

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$shortCommandIdentifiers 보호되어 있는 프로퍼티

protected array $shortCommandIdentifiers
리턴 array