| @@ 45-61 (lines=17) @@ | ||
| 42 | * @param OutputInterface $output |
|
| 43 | * @return void |
|
| 44 | */ |
|
| 45 | protected function execute(InputInterface $input, OutputInterface $output) : void |
|
| 46 | { |
|
| 47 | $this->write('Running <info>generate:controller</info> command'); |
|
| 48 | try { |
|
| 49 | // validate |
|
| 50 | $this->validateModuleArgument(); |
|
| 51 | $this->validateControllerArgument(); |
|
| 52 | ||
| 53 | // generate directories and files |
|
| 54 | $this->generate($input, $output); |
|
| 55 | ||
| 56 | // verify it |
|
| 57 | $this->verify($input, $output); |
|
| 58 | } catch (\Exception $e) { |
|
| 59 | $this->error("ERROR: {$e->getMessage()}"); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * @param InputInterface $input |
|
| @@ 49-65 (lines=17) @@ | ||
| 46 | * @return void |
|
| 47 | * @throws \Bluzman\Generator\GeneratorException |
|
| 48 | */ |
|
| 49 | protected function execute(InputInterface $input, OutputInterface $output) : void |
|
| 50 | { |
|
| 51 | $this->write('Running <info>generate:crud</info> command'); |
|
| 52 | try { |
|
| 53 | // validate |
|
| 54 | $this->validateModelArgument(); |
|
| 55 | $this->validateModuleArgument(); |
|
| 56 | ||
| 57 | // generate directories and files |
|
| 58 | $this->generate($input, $output); |
|
| 59 | ||
| 60 | // verify it |
|
| 61 | $this->verify($input, $output); |
|
| 62 | } catch (InputException $e) { |
|
| 63 | $this->error("ERROR: {$e->getMessage()}"); |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param InputInterface $input |
|
| @@ 49-65 (lines=17) @@ | ||
| 46 | * @return void |
|
| 47 | * @throws \Bluzman\Generator\GeneratorException |
|
| 48 | */ |
|
| 49 | protected function execute(InputInterface $input, OutputInterface $output) : void |
|
| 50 | { |
|
| 51 | $this->write('Running <info>generate:grid</info> command'); |
|
| 52 | try { |
|
| 53 | // validate |
|
| 54 | $this->validateModelArgument(); |
|
| 55 | $this->validateModuleArgument(); |
|
| 56 | ||
| 57 | // generate directories and files |
|
| 58 | $this->generate($input, $output); |
|
| 59 | ||
| 60 | // verify files |
|
| 61 | $this->verify($input, $output); |
|
| 62 | } catch (InputException $e) { |
|
| 63 | $this->error("ERROR: {$e->getMessage()}"); |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param InputInterface $input |
|
| @@ 46-62 (lines=17) @@ | ||
| 43 | * @param OutputInterface $output |
|
| 44 | * @return void |
|
| 45 | */ |
|
| 46 | protected function execute(InputInterface $input, OutputInterface $output) : void |
|
| 47 | { |
|
| 48 | $this->write('Running <info>generate:model</info> command'); |
|
| 49 | try { |
|
| 50 | // validate |
|
| 51 | $this->validateModelArgument(); |
|
| 52 | $this->validateTableArgument(); |
|
| 53 | ||
| 54 | // generate directories and files |
|
| 55 | $this->generate($input, $output); |
|
| 56 | ||
| 57 | // verify it |
|
| 58 | $this->verify($input, $output); |
|
| 59 | } catch (InputException $e) { |
|
| 60 | $this->error("ERROR: {$e->getMessage()}"); |
|
| 61 | } |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param InputInterface $input |
|
| @@ 44-59 (lines=16) @@ | ||
| 41 | * @param OutputInterface $output |
|
| 42 | * @return void |
|
| 43 | */ |
|
| 44 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 45 | { |
|
| 46 | $this->write('Running <info>generate:module</info> command'); |
|
| 47 | try { |
|
| 48 | // validate |
|
| 49 | $this->validateModuleArgument(); |
|
| 50 | ||
| 51 | // create main folder and subfolders |
|
| 52 | $this->generate($input, $output); |
|
| 53 | ||
| 54 | // verify it |
|
| 55 | $this->verify($input, $output); |
|
| 56 | } catch (\Exception $e) { |
|
| 57 | $this->error("ERROR: {$e->getMessage()}"); |
|
| 58 | } |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * @param InputInterface $input |
|
| @@ 44-60 (lines=17) @@ | ||
| 41 | /** |
|
| 42 | * {@inheritdoc} |
|
| 43 | */ |
|
| 44 | protected function execute(InputInterface $input, OutputInterface $output) : void |
|
| 45 | { |
|
| 46 | $this->write('Running <info>generate:rest</info> command'); |
|
| 47 | try { |
|
| 48 | // validate |
|
| 49 | $this->validateModelArgument(); |
|
| 50 | $this->validateModuleArgument(); |
|
| 51 | ||
| 52 | // generate directories and files |
|
| 53 | $this->generate($input, $output); |
|
| 54 | ||
| 55 | // verify it |
|
| 56 | $this->verify($input, $output); |
|
| 57 | } catch (InputException $e) { |
|
| 58 | $this->error("ERROR: {$e->getMessage()}"); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param InputInterface $input |
|