Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop ModuleRouteListener support #123

Merged
merged 2 commits into from
Aug 20, 2022

Conversation

Xerkus
Copy link
Member

@Xerkus Xerkus commented Jun 3, 2022

Q A
Documentation yes
Bugfix no
BC Break yes
New Feature no
RFC yes
QA no

Description

ModuleRouteListener was initially provided as a way to map :controller in route to namespaced controller. It was also useful for Zend Framework 1 users migrating their codebases.

This listener was either never enabled by default or disabled fairly soon. We no longer recommend using :controller as an url placeholder and suggest users to declare route controllers explicitly.

Since this listener was never enabled by default, users do not expect to encounter MODULE_NAMESPACE in route match and do not account for it when using or changing controller parameter.

This PR drops the support for ModuleRouteListener::MODULE_NAMESPACE entirely and drops the listener itself.

Accompanied deprecation PR would be opened against 3.x.


I would like to hear if you need this and why you need it

@Xerkus Xerkus force-pushed the feature/drop-module-route-listener branch from 3fd6655 to ed64678 Compare August 20, 2022 10:54
Signed-off-by: Aleksei Khudiakov <[email protected]>
@Xerkus Xerkus force-pushed the feature/drop-module-route-listener branch from ed64678 to e197f40 Compare August 20, 2022 11:22
@Xerkus Xerkus merged commit cbba106 into laminas:4.0.x Aug 20, 2022
@Xerkus Xerkus deleted the feature/drop-module-route-listener branch August 20, 2022 11:47
gsteel added a commit to laminas/laminas-mvc-view that referenced this pull request Aug 22, 2022
gsteel added a commit to laminas/laminas-mvc-view that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants