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 ApplicationInterface #59

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

Xerkus
Copy link
Member

@Xerkus Xerkus commented Jun 19, 2020

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

Description

ApplicationInterface was never really utilized and where application instance were expected often time it was the Laminas\Mvc\Application implicitly which is not type safe.

Interface does not provide a lot of value now and even more reduntant with the direction towards pure dependency injection from a mix of DI and service locator.

Make EventManager instance a required constructor parameter instead of optional pulled from injected container in the same constructor. Downgrade Application to EventsCapableInterface removing ability to set different event manager instance post instantiation.

Psalm issues which are not directly related intentionally left unfixed to be handled in a separate PR.

@Xerkus Xerkus added this to the 4.0.0 milestone Jun 19, 2020
Xerkus added a commit to Xerkus/laminas-mvc that referenced this pull request Jun 19, 2020
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
@geerteltink geerteltink changed the base branch from next to 4.0.x September 12, 2020 09:02
@Xerkus Xerkus force-pushed the feature/drop-application-interface branch from b4bb224 to e9e82bd Compare June 2, 2021 14:01
@Xerkus Xerkus removed this from the 4.0.0 milestone Jun 3, 2022
@Xerkus Xerkus force-pushed the feature/drop-application-interface branch from e9e82bd to f3338f2 Compare August 20, 2022 19:22
@Xerkus Xerkus changed the base branch from backup-4.0.x-at-2022-02-24 to 4.0.x August 20, 2022 19:23
@Xerkus Xerkus force-pushed the feature/drop-application-interface branch from f3338f2 to 68170d5 Compare March 14, 2023 21:59
@Xerkus Xerkus added this to the 4.0.0 milestone Mar 14, 2023
@Xerkus Xerkus force-pushed the feature/drop-application-interface branch from 68170d5 to 870c61d Compare March 15, 2023 17:13
@Xerkus Xerkus marked this pull request as draft March 15, 2023 18:47
@Xerkus Xerkus force-pushed the feature/drop-application-interface branch from 870c61d to b9c0040 Compare March 15, 2023 20:18
ApplicationInterface was never properly utilized and some parts of the
MVC application are implicitly depending on Laminas\Mvc\Application.
It is not type safe and with the general direction towards dependency injection
with container-exists-first approach there is hardly any value in keeping the interface.

Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
@Xerkus Xerkus force-pushed the feature/drop-application-interface branch from b9c0040 to 6b7cd1c Compare December 9, 2023 16:22
@Xerkus Xerkus marked this pull request as ready for review December 9, 2023 16:22
@Xerkus Xerkus merged commit a2b0a1a into laminas:4.0.x Jul 28, 2024
10 of 11 checks passed
@Xerkus Xerkus deleted the feature/drop-application-interface branch July 28, 2024 22:38
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.

1 participant