|
@@ 93-106 (lines=14) @@
|
| 90 |
|
); |
| 91 |
|
|
| 92 |
|
$pathFile = $this->getPathFile($input->getArgument('config-name'), $this->relation, 'Model', '', $input->getOption('psr4'), $input->getOption('path-pattern')); |
| 93 |
|
if (!file_exists($pathFile) || $input->getOption('force')) { |
| 94 |
|
$this->updateOutput( |
| 95 |
|
$output, |
| 96 |
|
(new ModelGenerator( |
| 97 |
|
$session, |
| 98 |
|
$this->schema, |
| 99 |
|
$this->relation, |
| 100 |
|
$pathFile, |
| 101 |
|
$this->getNamespace($input->getArgument('config-name'), null, $input->getOption('path-pattern')) |
| 102 |
|
))->generate(new ParameterHolder(array_merge($input->getArguments(), $input->getOptions()))) |
| 103 |
|
); |
| 104 |
|
} elseif ($output->isVerbose()) { |
| 105 |
|
$this->writelnSkipFile($output, $pathFile, 'model'); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
$pathFile = $this->getPathFile($input->getArgument('config-name'), $this->relation, '', '', $input->getOption('psr4'), $input->getOption('path-pattern')); |
| 109 |
|
if (!file_exists($pathFile) || $input->getOption('force')) { |
|
@@ 109-123 (lines=15) @@
|
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
$pathFile = $this->getPathFile($input->getArgument('config-name'), $this->relation, '', '', $input->getOption('psr4'), $input->getOption('path-pattern')); |
| 109 |
|
if (!file_exists($pathFile) || $input->getOption('force')) { |
| 110 |
|
$this->updateOutput( |
| 111 |
|
$output, |
| 112 |
|
(new EntityGenerator( |
| 113 |
|
$session, |
| 114 |
|
$this->schema, |
| 115 |
|
$this->relation, |
| 116 |
|
$pathFile, |
| 117 |
|
$this->getNamespace($input->getArgument('config-name'), null, $input->getOption('path-pattern')), |
| 118 |
|
$this->flexible_container |
| 119 |
|
))->generate(new ParameterHolder(array_merge($input->getArguments(), $input->getOptions()))) |
| 120 |
|
); |
| 121 |
|
} elseif ($output->isVerbose()) { |
| 122 |
|
$this->writelnSkipFile($output, $pathFile, 'entity'); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
return 0; |
| 126 |
|
} |