From 6a0b39767b2486dbcf3d965c7c39cf8099950410 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Fri, 8 May 2026 14:27:36 +0200 Subject: [PATCH] Revert "remove defaultName method from baked command" This reverts commit 98c0fa8440ce86f461a251c4c033711750352366. --- templates/bake/Command/command.twig | 10 ++++++++++ tests/comparisons/Command/testBakePlugin.php | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/templates/bake/Command/command.twig b/templates/bake/Command/command.twig index 7c376d59..d862366b 100644 --- a/templates/bake/Command/command.twig +++ b/templates/bake/Command/command.twig @@ -35,6 +35,16 @@ class {{ name }}Command extends Command */ protected string $name = '{{ command_name }}'; + /** + * Get the default command name. + * + * @return string + */ + public static function defaultName(): string + { + return '{{ command_name }}'; + } + /** * Get the command description. * diff --git a/tests/comparisons/Command/testBakePlugin.php b/tests/comparisons/Command/testBakePlugin.php index 6abb4d67..f3f0ea73 100644 --- a/tests/comparisons/Command/testBakePlugin.php +++ b/tests/comparisons/Command/testBakePlugin.php @@ -20,6 +20,16 @@ class ExampleCommand extends Command */ protected string $name = 'test_bake example'; + /** + * Get the default command name. + * + * @return string + */ + public static function defaultName(): string + { + return 'test_bake example'; + } + /** * Get the command description. *