Skip to content

Adding in support for multiple routes definitions through an array#90

Merged
alganet merged 1 commit intoRespect:developfrom
HelloChrisBrown:multiple-paths
Jun 9, 2013
Merged

Adding in support for multiple routes definitions through an array#90
alganet merged 1 commit intoRespect:developfrom
HelloChrisBrown:multiple-paths

Conversation

@HelloChrisBrown
Copy link
Copy Markdown
Contributor

Feature discussed in issue #89

Thanks @nickl- for supplying the code

This addition would allow you to define multiple paths to the same routine. This would be useful in cases when you want to pluralize.

$r3->any(array('/User', '/Users'), function(){
     return 'Hello World';
});

@nickl-
Copy link
Copy Markdown
Member

nickl- commented May 1, 2013

@blindsamson is it working? Awesome! Tx for the pull request!

Would you do us a huge favour please? We need a unit test for this and updating the documentation always helps. =)

Tx a million, glad I could help.

@HelloChrisBrown
Copy link
Copy Markdown
Contributor Author

@nickl- I haven't forgotten about this. I have been slammed at work. I'll get to it asap.

@nickl-
Copy link
Copy Markdown
Member

nickl- commented May 11, 2013

@blindsamson counting on you... =)

alganet added a commit that referenced this pull request Jun 9, 2013
Adding in support for multiple routes definitions through an array
@alganet alganet merged commit b50f9dc into Respect:develop Jun 9, 2013
@alganet
Copy link
Copy Markdown
Member

alganet commented Jun 9, 2013

Thank you very much! Do you mind adding an brief entry to our README.md? =)

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