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

4.x - Remove pathFor() and rename relativePathFor() with relativeUrlFor() #2654

Merged
merged 3 commits into from
Apr 24, 2019

Conversation

l0gicgate
Copy link
Member

@l0gicgate l0gicgate commented Apr 24, 2019

As per the discussion in #2493 and the stack overflow post explaining relative/absolute

relativePathFor() and pathFor() are getting entirely removed from the RouteParser component. Since this is a new interface that is the result of the fragmentation of the now deprecated Router component the user will need to re-learn the new interface so no point in implementing a warning of deprecation.

The RouteParser will now have this interface:

  • RouteParser::fullUrlFor() - Absolute URL
  • RouteParser::urlFor() - Root Relative URL formerly pathFor()
  • RouteParser::relativeUrlFor() - Relative URL formerly relativePathFor()

@l0gicgate l0gicgate added this to the 4.0 milestone Apr 24, 2019
@coveralls
Copy link

coveralls commented Apr 24, 2019

Coverage Status

Coverage decreased (-0.002%) to 99.325% when pulling eb6a182 on l0gicgate:4.x-RefactorRouteParser into 65dd548 on slimphp:4.x.

@l0gicgate l0gicgate merged commit e3a9c35 into slimphp:4.x Apr 24, 2019
@l0gicgate l0gicgate mentioned this pull request Apr 25, 2019
@l0gicgate l0gicgate deleted the 4.x-RefactorRouteParser branch April 26, 2019 22:02
@l0gicgate l0gicgate mentioned this pull request Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants