Ejemplo n.º 1
0
    /**
     * configure
     *
     * @see Command
     */
    protected function configure()
    {
        $this->setName('pomm:generate:structure')->setDescription('Generate a RowStructure file based on table schema.')->setHelp(<<<HELP
HELP
);
        parent::configure();
        $this->addOption('psr4', null, InputOption::VALUE_NONE, 'Use PSR4 structure.');
    }
Ejemplo n.º 2
0
    /**
     * configure
     *
     * @see Command
     */
    protected function configure()
    {
        $this->setName('pomm:generate:entity')->setDescription('Generate an Entity class.')->setHelp(<<<HELP
This command generates an empty FlexibleEntity class in the given directory with the given namespace. By default, it creates a tree structure in the following format: ConfigName/NameSchema.

In order to comply with the project’s autoloading rules, it is possible to prefix this directory structure and / or namespace:

<info>pomm:generate:entity -d sources/lib/Model -a 'Vendor\\Project\\Model' --psr4 builder_name</info>

HELP
);
        parent::configure();
    }
Ejemplo n.º 3
0
 /**
  * configure
  *
  * @see Command
  */
 public function configure()
 {
     $this->setName('pomm:generate:model')->setDescription('Generate a new model file.');
     parent::configure();
     $this->addOption('force', null, InputOption::VALUE_NONE, 'Force overwriting an existing file.')->addOption('psr4', null, InputOption::VALUE_NONE, 'Use PSR4 structure.');
 }
Ejemplo n.º 4
0
 /**
  * configure
  *
  * @see Command
  */
 public function configure()
 {
     $this->setName('pomm:generate:relation-all')->setDescription('Generate structure, model and entity file for a given relation.');
     parent::configure();
     $this->addOption('force', null, InputOption::VALUE_NONE, 'Force overwriting existing files.')->addOption('psr4', null, InputOption::VALUE_NONE, 'Use PSR4 structure.');
 }
Ejemplo n.º 5
0
 /**
  * configure
  *
  * @see Command
  */
 protected function configure()
 {
     $this->setName('pomm:inspect:relation')->setDescription('Display a relation information.');
     parent::configure();
 }