public function packageCommand($packageKey, $packageType = PackageInterface::DEFAULT_COMPOSER_TYPE)
    {
        $this->validatePackageKey($packageKey);

        if ($this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" already exists.', [$packageKey]);
            exit(2);
        }

        if (!ComposerUtility::isFlowPackageType($packageType)) {
            $this->outputLine('The package must be a Flow package, but "%s" is not a valid Flow package type.', [$packageType]);
            $this->quit(1);
        }

        $this->packageManager->createPackage($packageKey, ['type' => $packageType]);
        $this->actionControllerCommand($packageKey, 'Standard');
        $this->documentationCommand($packageKey);
    }
public function packageCommand($packageKey, $packageType = PackageInterface::DEFAULT_COMPOSER_TYPE)
    {
        $this->validatePackageKey($packageKey);

        if ($this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" already exists.', [$packageKey]);
            exit(2);
        }

        if (!ComposerUtility::isFlowPackageType($packageType)) {
            $this->outputLine('The package must be a Flow package, but "%s" is not a valid Flow package type.', [$packageType]);
            $this->quit(1);
        }

        $this->packageManager->createPackage($packageKey, ['type' => $packageType]);
        $this->actionControllerCommand($packageKey, 'Standard');
        $this->documentationCommand($packageKey);
    }
public function packageCommand ( $ packageKey , $ packageType = PackageInterface :: DEFAULT_COMPOSER_TYPE ) { $ this -> validatePackageKey ( $ packageKey ) ; if ( $ this -> packageManager -> isPackageAvailable ( $ packageKey ) ) { $ this -> outputLine ( 'Package "%s" already exists.' , [ $ packageKey ] ) ; exit ( 2 ) ; } if ( ! ComposerUtility :: isFlowPackageType ( $ packageType ) ) { $ this -> outputLine ( 'The package must be a Flow package, but "%s" is not a valid Flow package type.' , [ $ packageType ] ) ; $ this -> quit ( 1 ) ; } $ this -> packageManager -> createPackage ( $ packageKey , [ 'type' => $ packageType ] ) ; $ this -> actionControllerCommand ( $ packageKey , 'Standard' ) ; $ this -> documentationCommand ( $ packageKey ) ; }
Kickstart a new package

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.

@param string $packageKey The package key, for example "MyCompany.MyPackageName"
@param string $packageType Optional package type, e.g. "neos-plugin"
@return string
@see neos.flow:package:create
Kickstart a new package