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

Optionally pass $options to actual router when generating URIs #6

Merged
merged 1 commit into from
Oct 4, 2016
Merged

Optionally pass $options to actual router when generating URIs #6

merged 1 commit into from
Oct 4, 2016

Conversation

DASPRiD
Copy link
Member

@DASPRiD DASPRiD commented Feb 2, 2016

Related PRs:

zendframework/zend-expressive#307
zendframework/zend-expressive-helpers#9

What's still missing: the three router bridges which are in place still need to be updated to use the new RuntimeConfigurableRouterInterface. I've also added an optional options array to the generateUri method, which a router bridge may pass down to its actual router.

If we need to maintain BC, I can find a way to handle that, but this is the easiest approach.

@harikt
Copy link

harikt commented Feb 2, 2016

Hm @DASPRiD changing an RouterInterface breaks the api for 1.x .

Either a major version need to be released if so.

@michaelmoussa
Copy link
Contributor

@DASPRiD since the changes this PR makes to RouterInterface breaks BC and will require a major version release anyway, what do you think of dropping the new RuntimeConfigurableRouterInterface entirely and just updating the RouterInterface?

@michaelmoussa michaelmoussa changed the title Split router interface into consumer-only and runtime-configurable ve… Optionally pass $options to actual router when generating URIs Oct 4, 2016
michaelmoussa added a commit that referenced this pull request Oct 4, 2016
michaelmoussa added a commit that referenced this pull request Oct 4, 2016
@michaelmoussa michaelmoussa changed the base branch from develop to dev-2.0.0 October 4, 2016 02:01
@michaelmoussa michaelmoussa reopened this Oct 4, 2016
@michaelmoussa michaelmoussa merged commit 6b43754 into zendframework:dev-2.0.0 Oct 4, 2016
michaelmoussa added a commit that referenced this pull request Oct 4, 2016
michaelmoussa added a commit that referenced this pull request Oct 4, 2016
@michaelmoussa
Copy link
Contributor

Merged into dev-2.0.0 with some modifications. Sorry for the extra GitHub spam! Made a small mistake when creating the branch.

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

Successfully merging this pull request may close these issues.

3 participants