File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,12 @@ You can optionally define a description, help message and the
171
171
classes, but it won't show any description for commands that use the
172
172
``setDescription() `` method instead of the static property.
173
173
174
+ .. deprecated :: 6.1
175
+
176
+ The static property ``$defaultDescription `` was deprecated in Symfony 6.1.
177
+ Instead, use the ``#[AsCommand] `` attribute to define the optional command
178
+ description.
179
+
174
180
The ``configure() `` method is called automatically at the end of the command
175
181
constructor. If your command defines its own constructor, set the properties
176
182
first and then call to the parent constructor, to make those properties
@@ -234,6 +240,11 @@ If you can't use PHP attributes, register the command as a service and
234
240
:ref: `default services.yaml configuration <service-container-services-load-example >`,
235
241
this is already done for you, thanks to :ref: `autoconfiguration <services-autoconfigure >`.
236
242
243
+ .. deprecated :: 6.1
244
+
245
+ The static property ``$defaultName `` was deprecated in Symfony 6.1.
246
+ Define your command name with the ``#[AsCommand] `` attribute instead.
247
+
237
248
Running the Command
238
249
~~~~~~~~~~~~~~~~~~~
239
250
You can’t perform that action at this time.
0 commit comments