Exemple #1
0
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return bool
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if ($isNotPackage = $this->builder->isNotPackageRoot()) {
         $output->writeln("<error>Cannot generate file. Generator commands must be run from the root of a composer package.</error>");
     }
     return !$isNotPackage;
 }