Neos\Flow\Cli\Command::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( string $controllerClassName, string $controllerCommandName )
$controllerClassName string Class name of the controller providing the command
$controllerCommandName string Command name, i.e. the method name of the command, without the "Command" suffix
    public function __construct($controllerClassName, $controllerCommandName)
    {
        $this->controllerClassName = $controllerClassName;
        $this->controllerCommandName = $controllerCommandName;
        $matchCount = preg_match('/^(?P<PackageNamespace>\\w+(?:\\\\\\w+)*)\\\\Command\\\\(?P<ControllerName>\\w+)CommandController$/', $controllerClassName, $matches);
        if ($matchCount !== 1) {
            throw new \InvalidArgumentException('Invalid controller class name "' . $controllerClassName . '". Make sure your controller is in a folder named "Command" and it\'s name ends in "CommandController"', 1305100019);
        }
        $this->commandIdentifier = strtolower(str_replace('\\', '.', $matches['PackageNamespace']) . ':' . $matches['ControllerName'] . ':' . $controllerCommandName);
    }