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

Made UrlExtension not to be registered if either one of the helpers is not registered #25

Merged
merged 1 commit into from
Nov 1, 2017
Merged

Made UrlExtension not to be registered if either one of the helpers is not registered #25

merged 1 commit into from
Nov 1, 2017

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Oct 12, 2017

This fixes #24

I have made the UrlExtension not to be loaded on plates engine when either the UrlHelper or the ServerUrlHelper are not registered in the container.

This way, if you don't need them, you don't have to depend on the zendframework/zend-expressive-helpers package.

I have selected an approach in which the check is not performed if you have explicitly registered the UrlExtension in the container. In that case, an exception will still be thrown if you didn't register the helpers yourself.

@weierophinney weierophinney merged commit a9e7b49 into zendframework:master Nov 1, 2017
weierophinney added a commit that referenced this pull request Nov 1, 2017
Made UrlExtension not to be registered if either one of the helpers is not registered
weierophinney added a commit that referenced this pull request Nov 1, 2017
weierophinney added a commit that referenced this pull request Nov 1, 2017
weierophinney added a commit that referenced this pull request Nov 1, 2017
@weierophinney
Copy link
Member

Thanks, @acelaya

@acelaya
Copy link
Contributor Author

acelaya commented Nov 2, 2017

You are welcome :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make UrlExtension optional
3 participants