You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unclear to me what the problem is: a patch with a failing test case + potential fix would be very welcome, in order to better explain what is going on 👍
I have created a minimal project structure that errors out, the laminas-project is just the laminas-skeleton-application with the minimal controller plugin in custom-zend-form-binder. composer install in both folders and the crash happens on opening the /application/test route.
If I add the "CustomZendFormBinder" => "CustomZendFormBinder"
line to laminas-project\vendor\laminas\laminas-zendframework-bridge\config\replacements.php
to block that replacement explicitely it does not crash anymore.
Bug Report
Summary
We have an internal module called KrumediaZendFormBinder which is getting renamed to KrumediaLaminasFormBinder which leads to a NotFound exception.
Current behavior
The phrase "ZendForm" is getting replaced in 3rd party modules.
How to reproduce
This is a failing test case which could be added to ReplacementsTest.php
Expected behavior
The ZendframeworkBridge does not touch 3rd party module names.
Potential fix
A potential fix could be adding
to the
replacements.php
rules. A similar batch is already in there for'aZend' => 'aZend'
etc.Though I don't know if there is a case where SomethingZendForm actually needs to be replaced with SomethingLaminasForm.
I'd gladly send a PR with this fix (and test) if it results in the intended behavior.
The text was updated successfully, but these errors were encountered: