Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ attribute. For example, you may want a command to create a user::
}
}

.. versionadded:: 7.3

Support for invokable commands that don't extend the base ``Command`` class
was introduced in Symfony 7.3

If you can't use PHP attributes, register the command as a service and
:doc:`tag it </service_container/tags>` with the ``console.command`` tag. If you're using the
:ref:`default services.yaml configuration <service-container-services-load-example>`,
Expand Down