Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Add zend-servicemanager as a required dependency #160

Conversation

settermjd
Copy link
Contributor

@settermjd settermjd commented Jan 12, 2018

Provide a narrative description of what you are trying to accomplish:

After being bitten by the bug in #119, where I couldn't use zend-inputfilter without zend-servicemanager, I'm proposing this PR, which makes zend-servicemanager a required dependency of zend-inputfilter. I can't claim to understand all the reasoning for not doing so to date (I'm happy to defer if necessary), but based on this experience it makes sense to make the change.

  • Are you fixing a bug?
    • Detail how the bug is invoked currently.
    • Detail the original, incorrect behavior.
    • Detail the new, expected behavior.

The above three questions are answered in #119 (comment).

After being bitten by the bug in zendframework#119, where I couldn't use
zend-inputfilter without zend-servicemanager, I'm proposing this PR,
which makes zend-servicemanager a required dependency. I can't claim to
understand all the reasoning for not doing so to date, but based on this
experience, it makes sense to make the change.
@weierophinney
Copy link
Member

The original idea was that you could use the BaseInputFilter standalone, as you can then push all dependencies manually. However, we have no documentation on how to do that, and, as @Xerkus notes in one of the linked threads, the Input class itself pulls the NotEmpty validator as a plugin, requiring that at least the validators have zend-servicemanager around.

As such, I'm marking this as a bugfix, and will merge it for an upcoming 2.8.1 release.

@weierophinney weierophinney added this to the 2.8.1 milestone Jan 22, 2018
@weierophinney weierophinney merged commit 9021b65 into zendframework:master Jan 22, 2018
weierophinney added a commit that referenced this pull request Jan 22, 2018
…datory-dependency

Add zend-servicemanager as a required dependency
weierophinney added a commit that referenced this pull request Jan 22, 2018
weierophinney added a commit that referenced this pull request Jan 22, 2018
weierophinney added a commit that referenced this pull request Jan 22, 2018
@weierophinney
Copy link
Member

Thanks, @settermjd!

@settermjd
Copy link
Contributor Author

Thanks for sharing the extra background information, @weierophinney. It helps me understand it in a greater context. And thanks for merging the PR too.

@settermjd settermjd deleted the add-zend-servicemanager-as-mandatory-dependency branch January 24, 2018 10:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants