Skip to content

Commit 9835d2e

Browse files
authored
refactor(console): update make:controller command parameters to be simpler (tempestphp#761)
1 parent e76c1f8 commit 9835d2e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Tempest/Database/src/Commands/MakeModelCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __invoke(
3939
shouldOverride: $shouldOverride,
4040
);
4141

42-
$this->console->success(sprintf('File successfully created at "%s".', $targetPath));
42+
$this->console->success(sprintf('Model successfully created at "%s".', $targetPath));
4343
} catch (FileGenerationAbortedException|FileGenerationFailedException $e) {
4444
$this->console->error($e->getMessage());
4545
}

src/Tempest/Http/src/Commands/MakeControllerCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ public function __invoke(
2727
)]
2828
string $className,
2929
#[ConsoleArgument(
30+
name: 'path',
3031
help: 'The path of the route',
3132
)]
3233
?string $controllerPath = null,
3334
#[ConsoleArgument(
35+
name: 'view',
3436
help: 'The name of the view returned from the controller',
3537
)]
3638
?string $controllerView = null,
@@ -50,7 +52,7 @@ public function __invoke(
5052
],
5153
);
5254

53-
$this->success(sprintf('File successfully created at "%s".', $targetPath));
55+
$this->success(sprintf('Controller successfully created at "%s".', $targetPath));
5456
} catch (FileGenerationAbortedException|FileGenerationFailedException $e) {
5557
$this->error($e->getMessage());
5658
}

0 commit comments

Comments
 (0)