Newer
Older
/**
* @file
* Definition of Drupal\Core\Routing\PartialMatcher.
*/
namespace Drupal\Core\Routing;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouteCollection;
/**
* Utility base class for partial matchers.
*/
abstract class PartialMatcher implements PartialMatcherInterface {
/**
* The RouteCollection this matcher should match against.
*
* @var \Symfony\Component\Routing\RouteCollection
*/
protected $routes;
/**
* Sets the route collection this matcher should use.
*
* @param \Symfony\Component\Routing\RouteCollection $collection
* The collection against which to match.
*
* @return \Drupal\Core\Routing\PartialMatcherInterface