Skip to content

added MatcherInterface as a marker for all Routing matcher classes #6509

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

Closed
wants to merge 1 commit into from

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Dec 29, 2012

This allows to use a type hint when you want to support both UrlMatcherInterface and RequestMatcherInterface

@Tobion
Copy link
Contributor

Tobion commented Dec 30, 2012

I don't think this is usefull because the interface does not implement any method.
So using the typehint says nothing at all. And the user would need to check against RequestMatcherInterface and UrlMatcherInterface anyway.

@Tobion
Copy link
Contributor

Tobion commented Dec 30, 2012

Also with #5895 this would not be needed anymore as RequestMatcherInterface extends UrlMatcherInterface there. So we can use UrlMatcherInterface as typehint again.

@fabpot fabpot closed this Jan 2, 2013
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.

2 participants