diff --git a/core/modules/system/lib/Drupal/system/Tests/Routing/MockRouteProvider.php b/core/modules/system/lib/Drupal/system/Tests/Routing/MockRouteProvider.php index 3934949..e0ed543 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Routing/MockRouteProvider.php +++ b/core/modules/system/lib/Drupal/system/Tests/Routing/MockRouteProvider.php @@ -8,9 +8,9 @@ namespace Drupal\system\Tests\Routing; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\Routing\Exception\RouteNotFoundException; use Symfony\Component\Routing\RouteCollection; - -use Symfony\Cmf\Component\Routing\RouteProviderInterface; +use Drupal\Core\Routing\RouteProviderInterface; /** * Easily configurable mock route provider. @@ -68,4 +68,12 @@ public function getRoutesByNames($names, $parameters = array()) { return $routes; } + /** + * {@inheritdoc} + */ + public function getRoutesByPattern($pattern) { + return new RouteCollection(); + } + + }