Skip to content

Commit 093b385

Browse files
authored
Merge pull request #1081 from cakephp/3.x-cleanup-command
remove defaultName method from baked command
2 parents 210a459 + 98c0fa8 commit 093b385

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

templates/bake/Command/command.twig

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ class {{ name }}Command extends Command
3535
*/
3636
protected string $name = '{{ command_name }}';
3737

38-
/**
39-
* Get the default command name.
40-
*
41-
* @return string
42-
*/
43-
public static function defaultName(): string
44-
{
45-
return '{{ command_name }}';
46-
}
47-
4838
/**
4939
* Get the command description.
5040
*

tests/comparisons/Command/testBakePlugin.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ class ExampleCommand extends Command
2020
*/
2121
protected string $name = 'test_bake example';
2222

23-
/**
24-
* Get the default command name.
25-
*
26-
* @return string
27-
*/
28-
public static function defaultName(): string
29-
{
30-
return 'test_bake example';
31-
}
32-
3323
/**
3424
* Get the command description.
3525
*

0 commit comments

Comments
 (0)