File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ Console
4040 ```
4141
4242 * Deprecate methods ` Command::getDefaultName() ` and ` Command::getDefaultDescription() ` in favor of the ` #[AsCommand] ` attribute
43+ * ` #[AsCommand] ` attribute is now marked as ` @final ` ; you should use separate attributes to add more logic to commands
4344
4445DependencyInjection
4546-------------------
Original file line number Diff line number Diff line change 1313
1414/**
1515 * Service tag to autoconfigure commands.
16+ *
17+ * @final since Symfony 7.3
1618 */
1719#[\Attribute(\Attribute::TARGET_CLASS )]
1820class AsCommand
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ CHANGELOG
1313 * Add support for Markdown format in ` Table `
1414 * Add support for ` LockableTrait ` in invokable commands
1515 * Deprecate returning a non-integer value from a ` \Closure ` function set via ` Command::setCode() `
16+ * Mark ` #[AsCommand] ` attribute as ` @final `
1617
17187.2
1819---
You can’t perform that action at this time.
0 commit comments