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

Add getMatchedRouter() function to Router object. #39

Merged
merged 1 commit into from Apr 3, 2014

Conversation

djmattyg007
Copy link

The Router object will now remember the route it matched so it can be
fetched again without repeating the whole matching process (which can be
costly if there are a lot of routes).

Also added lots of tests for the new functionality.

This is the pull request for issue #37.

The Router object will now remember the route it matched so it can be
fetched again without repeating the whole matching process (which can be
costly if there are a lot of routes).

Also added lots of tests for the new functionality.
@djmattyg007
Copy link
Author

Well that's embarrassing. I mislabelled the commit "getMatchedRouter()" when it should have been "getMatchedRoute()".

My understanding is that to fix this, I'd have to close this pull request, update my branch locally, do a force push to my fork, and then submit another pull request. Is that correct?

@harikt
Copy link
Member

harikt commented Apr 3, 2014

You can just make a commit making the necessary changes.
Thanks

@djmattyg007
Copy link
Author

The problem is in the commit message, not the code changes.

@harikt
Copy link
Member

harikt commented Apr 3, 2014

aah then leave it .

pmjones pushed a commit that referenced this pull request Apr 3, 2014
Add getMatchedRoute() function to Router object.
@pmjones pmjones merged commit e77b496 into auraphp:develop-2 Apr 3, 2014
@harikt
Copy link
Member

harikt commented Apr 3, 2014

ha you merged it .

* @var Route
*
*/
protected $matchedRoute = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @djmattyg007 I had a discussion with @pmjones on irc.

He mentioned you to join some time in irc .

one of the thing mentioned is regarding the name matchedRoute to matched_route .
We will fix ourselves.
Thank you .

@djmattyg007 djmattyg007 deleted the remember_matched_route branch April 4, 2014 13:34
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.

None yet

4 participants