8000 [RFC][Routing] made RequestContext optional in generator and matcher by Tobion · Pull Request #5895 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[RFC][Routing] made RequestContext optional in generator and matcher #5895

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 10 commits into from
Prev Previous commit
Next Next commit
[Routing] remove redeclaration of interface method
Unfortunately this is not allowed in PHP5.3 which we support, so we cannot override the phpdoc for the method either
  • Loading branch information
Tobion committed Jan 17, 2013
commit 45474e7cb45ab23e41af8313d8f6a45b5c2caa0a
25 changes: 5 additions & 20 deletions src/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,15 @@

namespace Symfony\Component\Routing\Matcher;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;

/**
* RequestMatcherInterface is the interface that all request matcher classes must implement.
* A matcher implementing RequestMatcherInterface indicates that it also accepts
* a {@link \Symfony\Component\HttpFoundation\Request} object as parameter of the
* match method. In that way it is a marker interface that widens the accepted
* range of the extended UrlMatcherInterface::match method.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface RequestMatcherInterface extends UrlMatcherInterface
{
/**
* Tries to match a Request or a URL path with a set of routes.
*
* In contrast to the UrlMatcherInterface, a request matcher also accepts a Request object.
*
* @see UrlMatcherInterface
*
* @param Request|string $request A Request or a string with the path component of a URL (raw format, i.e. not urldecoded).
*
* @return array An array of parameters
*
* @throws ResourceNotFoundException If no matching resource could be found
* @throws MethodNotAllowedException If a matching resource was found but the request method is not allowed
*/
public function match($request);

}
0