interface RouterInterface implements UrlMatcherInterface, UrlGeneratorInterface
RouterInterface is the interface that all Router classes must implements.
This interface is the concatenation of UrlMatcherInterface and UrlGeneratorInterface.
Methods
| array |
match(string $pathinfo)
Tries to match a URL with a set of routes. |
from UrlMatcherInterface |
| string |
generate(string $name, mixed $parameters = array(), Boolean $absolute = false)
Generates a URL from the given parameters. |
from UrlGeneratorInterface |
Details
in UrlMatcherInterface at line 37
public array
match(string $pathinfo)
Tries to match a URL with a set of routes.
in UrlGeneratorInterface at line 36
public string
generate(string $name, mixed $parameters = array(), Boolean $absolute = false)
Generates a URL from the given parameters.