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

[5.7] Pass route to custom URL formatters #24049

Merged
merged 2 commits into from
May 2, 2018

Conversation

imbrish
Copy link
Contributor

@imbrish imbrish commented Apr 29, 2018

Pass route for which URL is currently generated to the custom host and path formatters.


This is a part of a series of pull requests simplifying localization of URLs, more details here #24048.

@sisve
Copy link
Contributor

sisve commented Apr 30, 2018

Could you add another test case for this functionality instead of modifying the existing one?

@imbrish
Copy link
Contributor Author

imbrish commented Apr 30, 2018

Sure thing! However it was exactly when writing tests that I discovered this issue #24047. Thus I want to wait first for #24051 to make it's way to 5.7, then rebase and add separate tests. Or should I add them already?

@sisve
Copy link
Contributor

sisve commented Apr 30, 2018

I'm not sure what you're asking. Are you saying that you cannot write tests until another 5.6 PR is ported to 5.7? If so, why not?

@imbrish
Copy link
Contributor Author

imbrish commented Apr 30, 2018

Tests will fail if added before linked PR get's merged.

@imbrish imbrish force-pushed the route-for-formatter branch from 3de9910 to a453b7f Compare May 2, 2018 10:38
@imbrish
Copy link
Contributor Author

imbrish commented May 2, 2018

Somehow I overlooked the fact, that I don't need to test for the relative route after all.

@taylorotwell taylorotwell merged commit d81e8c5 into laravel:master May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants