Skip to content

Commit

Permalink
feat: pass model name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Dec 8, 2024
1 parent daea786 commit a194c77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Generator/Commands/ContainerApiGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ public function getUserInputs(): array|null
'--section' => $sectionName,
'--container' => $containerName,
'--file' => $route['controller'],
'--model' => $model,

Check warning on line 339 in src/Generator/Commands/ContainerApiGenerator.php

View check run for this annotation

Codecov / codecov/patch

src/Generator/Commands/ContainerApiGenerator.php#L339

Added line #L339 was not covered by tests
'--ui' => $ui,
'--stub' => $route['stub'],
]);
Expand All @@ -360,6 +361,7 @@ public function getUserInputs(): array|null
$this->call('apiato:generate:controller', [
'--section' => $sectionName,
'--container' => $containerName,
'--model' => $model,

Check warning on line 364 in src/Generator/Commands/ContainerApiGenerator.php

View check run for this annotation

Codecov / codecov/patch

src/Generator/Commands/ContainerApiGenerator.php#L364

Added line #L364 was not covered by tests
'--file' => 'Controller',
'--ui' => $ui,
'--stub' => 'crud',
Expand Down
2 changes: 2 additions & 0 deletions src/Generator/Commands/ContainerWebGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ public function getUserInputs(): array|null
'--section' => $sectionName,
'--container' => $containerName,
'--file' => $route['controller'],
'--model' => $model,

Check warning on line 254 in src/Generator/Commands/ContainerWebGenerator.php

View check run for this annotation

Codecov / codecov/patch

src/Generator/Commands/ContainerWebGenerator.php#L254

Added line #L254 was not covered by tests
'--ui' => $ui,
'--stub' => $route['stub'],
]);
Expand All @@ -276,6 +277,7 @@ public function getUserInputs(): array|null
'--section' => $sectionName,
'--container' => $containerName,
'--file' => 'Controller',
'--model' => $model,

Check warning on line 280 in src/Generator/Commands/ContainerWebGenerator.php

View check run for this annotation

Codecov / codecov/patch

src/Generator/Commands/ContainerWebGenerator.php#L280

Added line #L280 was not covered by tests
'--ui' => $ui,
'--stub' => 'crud',
]);
Expand Down

0 comments on commit a194c77

Please sign in to comment.