From 72a59866a46bd657cd76a41a8ab1db17e293eb7e Mon Sep 17 00:00:00 2001 From: mscherer Date: Tue, 28 Oct 2025 05:05:19 +0100 Subject: [PATCH] Document replace function to command collection --- en/appendices/5-3-migration-guide.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/en/appendices/5-3-migration-guide.rst b/en/appendices/5-3-migration-guide.rst index cd8b719fff..b177757974 100644 --- a/en/appendices/5-3-migration-guide.rst +++ b/en/appendices/5-3-migration-guide.rst @@ -95,6 +95,10 @@ Console directories as array keys and files as lists under each directory. - Commands can now implement ``getGroup()`` to customize how commands are grouped in ``bin/cake -h`` output. +- ``CommandCollection::replace()`` was added. This method allows you to replace + an existing command in the collection without needing to remove and re-add it. + This is particularly useful when using ``autoDiscover`` and you want to replace + a command with a customized version. Core ----