Neos\Kickstarter\Command\KickstartCommandController::packageCommand PHP Method

packageCommand() public method

Creates a new package and creates a standard Action Controller and a sample template for its Index Action. For creating a new package without sample code use the package:create command.
public packageCommand ( string $packageKey ) : string
$packageKey string The package key, for example "MyCompany.MyPackageName"
return string
    public function packageCommand($packageKey)
    {
        $this->validatePackageKey($packageKey);
        if ($this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" already exists.', array($packageKey));
            exit(2);
        }
        $this->packageManager->createPackage($packageKey);
        $this->actionControllerCommand($packageKey, 'Standard');
        $this->documentationCommand($packageKey);
    }