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

Add ControllerManager::class as resolvable service #96

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

rieschl
Copy link
Contributor

@rieschl rieschl commented Feb 2, 2022

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

Description

As discovered in Slack, it is not possible to get the ControllerManager via its FQCN.
This PR adds the FQCN as canonical name of the service and changes the 'ControllerManager' service to an alias.

@rieschl
Copy link
Contributor Author

rieschl commented Feb 2, 2022

Would it be okay if I clean up the ServiceListenerFactory file in this PR a little bit, i.e. use ::class notation instead of string, add return types, add some tests to increase coverage....?

@Ocramius
Copy link
Member

Ocramius commented Feb 2, 2022

Would it be okay if I clean up the ServiceListenerFactory file in this PR a little bit

IMO separate patch - this one is a feature addition, let's make the next bit independently reviewable

@rieschl
Copy link
Contributor Author

rieschl commented Feb 2, 2022

I'm not sure, but I think this should be a minor release? But there's no 3.4.x branch, yet.

@Ocramius Ocramius changed the title Add ControllerManager::class as resolvable service Add ControllerManager::class as resolvable service Feb 2, 2022
@Ocramius Ocramius added this to the 3.4.0 milestone Feb 2, 2022
@Ocramius Ocramius self-assigned this Feb 2, 2022
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚢

@Ocramius Ocramius merged commit e001299 into laminas:3.3.x Feb 2, 2022
@Ocramius
Copy link
Member

Ocramius commented Feb 2, 2022

@rieschl oof, indeed, branches being a mess again -.-

@Ocramius Ocramius modified the milestones: 3.4.0, 3.3.1 Feb 2, 2022
@Ocramius
Copy link
Member

Ocramius commented Feb 2, 2022

Slipped into 3.3.1, sorry :(

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