/**
  * 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 typo3.kickstart:kickstart:model
  */
 public function repositoryCommand($packageKey, $modelName, $force = FALSE)
 {
     $this->validatePackageKey($packageKey);
     if (!$this->packageManager->isPackageAvailable($packageKey)) {
         $this->outputLine('Package "%s" is not available.', array($packageKey));
         exit(2);
     }
     $generatedFiles = $this->generatorService->generateRepository($packageKey, $modelName, $force);
     $this->outputLine(implode(PHP_EOL, $generatedFiles));
 }
 /**
  * Kickstart documentation
  *
  * Generates a documentation skeleton for the given package.
  *
  * @param string $packageKey The package key of the package for the documentation
  * @return string
  */
 public function documentationCommand($packageKey)
 {
     $this->validatePackageKey($packageKey);
     if (!$this->packageManager->isPackageAvailable($packageKey)) {
         $this->outputLine('Package "%s" is not available.', array($packageKey));
         exit(2);
     }
     $generatedFiles = $this->generatorService->generateDocumentation($packageKey);
     $this->outputLine(implode(PHP_EOL, $generatedFiles));
 }