File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1212use Bizkit \VersioningBundle \VCS \VCSHandlerInterface ;
1313use Bizkit \VersioningBundle \Version ;
1414use Bizkit \VersioningBundle \Writer \WriterInterface ;
15+ use Symfony \Component \Console \Attribute \AsCommand ;
1516use Symfony \Component \Console \Command \Command ;
1617use Symfony \Component \Console \Input \InputInterface ;
1718use Symfony \Component \Console \Output \OutputInterface ;
1819use Symfony \Component \Console \Style \StyleInterface ;
1920use Symfony \Component \Console \Style \SymfonyStyle ;
2021
22+ #[AsCommand(self ::DEFAULT_NAME , self ::DEFAULT_DESCRIPTION )]
2123final class IncrementCommand extends Command
2224{
23- protected static $ defaultName = 'bizkit:versioning:increment ' ;
24- protected static $ defaultDescription = 'Increments the version using the configured versioning strategy. ' ;
25+ public const DEFAULT_NAME = 'bizkit:versioning:increment ' ;
26+ public const DEFAULT_DESCRIPTION = 'Increments the version using the configured versioning strategy. ' ;
27+
28+ protected static $ defaultName = self ::DEFAULT_NAME ;
29+ protected static $ defaultDescription = self ::DEFAULT_DESCRIPTION ;
2530
2631 /**
2732 * @var string
@@ -66,7 +71,7 @@ public function __construct(
6671
6772 protected function configure (): void
6873 {
69- $ this ->setDescription (self ::$ defaultDescription );
74+ $ this ->setDescription (self ::DEFAULT_DESCRIPTION );
7075 }
7176
7277 protected function execute (InputInterface $ input , OutputInterface $ output ): int
You can’t perform that action at this time.
0 commit comments