From c0948ac0ea5afc64f6df8755c64d098a86f68f89 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sat, 22 Jun 2024 18:52:26 +0300 Subject: [PATCH] Update UPGRADE.md Co-authored-by: Alexander Makarov --- UPGRADE.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index c3c8547..5bbe78f 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -23,7 +23,6 @@ application when you upgrade the package from one version to another. ], ``` -- Changed behavior of controller name extractor. Now it uses greedy search of namespace items with "controller(s)" - postfix. For example, controller namespace is `App\AllControllers\MyController\FooBar\BazController`. Previously, +- Controller name extractor now uses greedy search of namespace items with "controller(s)" postfix. For example, for controller namespace `App\AllControllers\MyController\FooBar\BazController` previously, result was "controller/foo-bar/baz", now it is "foo-bar/baz". You can use `ViewRenderer::withControllerName()` instead of `ViewRenderer::withController()` to explicitly define controller name.