public function commandControllerCommand($packageKey, $controllerName, $force = false)
    {
        $this->validatePackageKey($packageKey);
        if (!$this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" is not available.', [$packageKey]);
            exit(2);
        }
        $generatedFiles = [];
        $controllerNames = Arrays::trimExplode(',', $controllerName);
        foreach ($controllerNames as $currentControllerName) {
            $generatedFiles += $this->generatorService->generateCommandController($packageKey, $currentControllerName, $force);
        }
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
public function commandControllerCommand($packageKey, $controllerName, $force = false)
    {
        $this->validatePackageKey($packageKey);
        if (!$this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" is not available.', [$packageKey]);
            exit(2);
        }
        $generatedFiles = [];
        $controllerNames = Arrays::trimExplode(',', $controllerName);
        foreach ($controllerNames as $currentControllerName) {
            $generatedFiles += $this->generatorService->generateCommandController($packageKey, $currentControllerName, $force);
        }
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
public function commandControllerCommand ( $ packageKey , $ controllerName , $ force = false ) { $ this -> validatePackageKey ( $ packageKey ) ; if ( ! $ this -> packageManager -> isPackageAvailable ( $ packageKey ) ) { $ this -> outputLine ( 'Package "%s" is not available.' , [ $ packageKey ] ) ; exit ( 2 ) ; } $ generatedFiles = [ ] ; $ controllerNames = Arrays :: trimExplode ( ',' , $ controllerName ) ; foreach ( $ controllerNames as $ currentControllerName ) { $ generatedFiles += $ this -> generatorService -> generateCommandController ( $ packageKey , $ currentControllerName , $ force ) ; } $ this -> outputLine ( implode ( PHP_EOL , $ generatedFiles ) ) ; }
Kickstart a new command controller

Creates a new command controller with the given name in the specified
package. The generated controller class already contains an example command.

@param string $packageKey The package key of the package for the new controller
@param string $controllerName The name for the new controller. This may also be a comma separated list of controller names.
@param boolean $force Overwrite any existing controller.
@return string
@see neos.kickstarter:kickstart:actioncontroller
Kickstart a new command controller