This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpFoundation/RequestMatcherInterface.php

30 lines
758 B
PHP
Raw Normal View History

2010-09-01 12:56:06 +01:00
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
2010-09-01 12:56:06 +01:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpFoundation;
2010-09-01 12:56:06 +01:00
/**
* RequestMatcherInterface is an interface for strategies to match a Request.
*
* @author Fabien Potencier <fabien@symfony.com>
2010-09-01 12:56:06 +01:00
*/
interface RequestMatcherInterface
{
/**
* Decides whether the rule(s) implemented by the strategy matches the supplied request.
*
2012-05-15 21:19:31 +01:00
* @param Request $request The request to check for a match
2010-09-01 12:56:06 +01:00
*
2014-11-30 13:33:44 +00:00
* @return bool true if the request matches, false otherwise
2010-09-01 12:56:06 +01:00
*/
2012-07-09 13:50:58 +01:00
public function matches(Request $request);
2010-09-01 12:56:06 +01:00
}