public function repositoryCommand($packageKey, $modelName, $force = false)
    {
        $this->validatePackageKey($packageKey);
        if (!$this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" is not available.', [$packageKey]);
            exit(2);
        }

        $generatedFiles = $this->generatorService->generateRepository($packageKey, $modelName, $force);
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
public function repositoryCommand($packageKey, $modelName, $force = false)
    {
        $this->validatePackageKey($packageKey);
        if (!$this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('Package "%s" is not available.', [$packageKey]);
            exit(2);
        }

        $generatedFiles = $this->generatorService->generateRepository($packageKey, $modelName, $force);
        $this->outputLine(implode(PHP_EOL, $generatedFiles));
    }
public function repositoryCommand ( $ packageKey , $ modelName , $ force = false ) { $ this -> validatePackageKey ( $ packageKey ) ; if ( ! $ this -> packageManager -> isPackageAvailable ( $ packageKey ) ) { $ this -> outputLine ( 'Package "%s" is not available.' , [ $ packageKey ] ) ; exit ( 2 ) ; } $ generatedFiles = $ this -> generatorService -> generateRepository ( $ packageKey , $ modelName , $ force ) ; $ this -> outputLine ( implode ( PHP_EOL , $ generatedFiles ) ) ; }
Kickstart a new domain repository

This command generates a new domain repository class for the given model name.

@param string $packageKey The package key
@param string $modelName The name of the domain model class
@param boolean $force Overwrite any existing repository.
@return string
@see neos.kickstarter:kickstart:model
Kickstart a new domain repository