X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FRouteProvider.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FRouteProvider.php;h=6c20b1e47419c075e294446af2aacda08f242629;hp=5d92e77e0f1908527b21c26d1da5090c13b43f51;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/lib/Drupal/Core/Routing/RouteProvider.php b/web/core/lib/Drupal/Core/Routing/RouteProvider.php index 5d92e77e0..6c20b1e47 100644 --- a/web/core/lib/Drupal/Core/Routing/RouteProvider.php +++ b/web/core/lib/Drupal/Core/Routing/RouteProvider.php @@ -15,7 +15,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Symfony\Component\Routing\RouteCollection; -use \Drupal\Core\Database\Connection; +use Drupal\Core\Database\Connection; /** * A Route Provider front-end for all Drupal-stored routes. @@ -135,14 +135,14 @@ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProv * very large route sets to be filtered down to likely candidates, which * may then be filtered in memory more completely. * - * @param Request $request + * @param \Symfony\Component\HttpFoundation\Request $request * A request against which to match. * - * @return \Symfony\Component\Routing\RouteCollection with all urls that - * could potentially match $request. Empty collection if nothing can - * match. The collection will be sorted from highest to lowest fit (match - * of path parts) and then in ascending order by route name for routes - * with the same fit. + * @return \Symfony\Component\Routing\RouteCollection + * RouteCollection with all urls that could potentially match $request. + * Empty collection if nothing can match. The collection will be sorted from + * highest to lowest fit (match of path parts) and then in ascending order + * by route name for routes with the same fit. */ public function getRouteCollectionForRequest(Request $request) { // Cache both the system path as well as route parameters and matching @@ -347,7 +347,8 @@ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProv // dump the route pattern without those optional parts. try { $routes = $this->connection->query("SELECT name, route, fit FROM {" . $this->connection->escapeTable($this->tableName) . "} WHERE pattern_outline IN ( :patterns[] ) AND number_parts >= :count_parts", [ - ':patterns[]' => $ancestors, ':count_parts' => count($parts), + ':patterns[]' => $ancestors, + ':count_parts' => count($parts), ]) ->fetchAll(\PDO::FETCH_ASSOC); }