-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazy call router when replacing old backend paths (see #4091)
Description ----------- In #3995 we noticed the router was called for every old backend path even if it did not exist in the replaced URL. See https://github.com/contao/contao/pull/3995/files#r795530334 for the discussion. This PR changes the behaviour to use the callback only when necessary, happily covered with some unit tests 😎 Commits ------- c2a82f3 Lazy call router when replacing old backend paths e3ee58d Cache old backend url if method is called multiple times 12939c3 Reset controller before tests
- Loading branch information
Showing
3 changed files
with
163 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters