Skip to content

Commit

Permalink
Merge pull request #2849 from piotr-cz/cs/fastroutecollector-alias
Browse files Browse the repository at this point in the history
Create class alias for FastRoute\RouteCollector
  • Loading branch information
l0gicgate committed Oct 1, 2019
2 parents a787bf2 + c1e9569 commit a24fac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slim/Routing/Dispatcher.php
Expand Up @@ -3,7 +3,7 @@

namespace Slim\Routing;

use FastRoute\RouteCollector;
use FastRoute\RouteCollector as FastRouteCollector;
use FastRoute\RouteParser\Std;
use Slim\Interfaces\DispatcherInterface;
use Slim\Interfaces\RouteCollectorInterface;
Expand Down Expand Up @@ -37,7 +37,7 @@ protected function createDispatcher(): FastRouteDispatcher
return $this->dispatcher;
}

$routeDefinitionCallback = function (RouteCollector $r) {
$routeDefinitionCallback = function (FastRouteCollector $r) {
$basePath = $this->routeCollector->getBasePath();

foreach ($this->routeCollector->getRoutes() as $route) {
Expand Down

0 comments on commit a24fac2

Please sign in to comment.