@@ -10,9 +10,9 @@ dispatcher to match incoming requests against routes.
1010
1111If you wish to use a different combination — e.g., to use the Group Position
1212Based route matcher — you will need to create your own instances and inject them
13- into the ` Zend\Expressive\Router\FastRoute ` class, at instantiation.
13+ into the ` Zend\Expressive\Router\FastRouteRouter ` class, at instantiation.
1414
15- The ` FastRoute ` bridge class accepts two arguments at instantiation:
15+ The ` FastRouteRouter ` bridge class accepts two arguments at instantiation:
1616
1717- A ` FastRoute\RouteCollector ` instance
1818- A callable that will return a ` FastRoute\Dispatcher\RegexBasedAbstract `
@@ -31,7 +31,7 @@ $ composer require nikic/fast-route
3131
3232## Quick Start
3333
34- At its simplest, you can instantiate a ` Zend\Expressive\Router\FastRoute ` instance
34+ At its simplest, you can instantiate a ` Zend\Expressive\Router\FastRouteRouter ` instance
3535with no arguments; it will create the underlying FastRoute objects required
3636and compose them for you:
3737
@@ -45,11 +45,11 @@ $router = new FastRoute();
4545
4646If you need greater control over the FastRoute setup and configuration, you
4747can create the instances necessary and inject them into
48- ` Zend\Expressive\Router\FastRoute ` during instantiation.
48+ ` Zend\Expressive\Router\FastRouteRouter ` during instantiation.
4949
5050To do so, you will need to setup your ` RouteCollector ` instance and/or
5151optionally callable to return your ` RegexBasedAbstract ` instance manually,
52- inject them in your ` Zend\Expressive\Router\FastRoute ` instance, and inject use
52+ inject them in your ` Zend\Expressive\Router\FastRouteRouter ` instance, and inject use
5353that when creating your ` Application ` instance.
5454
5555``` php
@@ -60,7 +60,7 @@ use FastRoute\RouteCollector;
6060use FastRoute\RouteGenerator;
6161use FastRoute\RouteParser\Std as RouteParser;
6262use Zend\Expressive\AppFactory;
63- use Zend\Expressive\Router\FastRoute as FastRouteBridge;
63+ use Zend\Expressive\Router\FastRouteRouter as FastRouteBridge;
6464
6565$fastRoute = new RouteCollector(
6666 new RouteParser(),
@@ -95,7 +95,7 @@ two strategies for creating your FastRoute implementation.
9595### Basic Router
9696
9797If you don't need to provide any setup or configuration, you can simply
98- instantiate and return an instance of ` Zend\Expressive\Router\FastRoute ` for the
98+ instantiate and return an instance of ` Zend\Expressive\Router\FastRouteRouter ` for the
9999service name ` Zend\Expressive\Router\RouterInterface ` .
100100
101101A factory would look like this:
@@ -105,17 +105,17 @@ A factory would look like this:
105105namespace Application\Container;
106106
107107use Interop\Container\ContainerInterface;
108- use Zend\Expressive\Router\FastRoute ;
108+ use Zend\Expressive\Router\FastRouteRouter ;
109109
110110class RouterFactory
111111{
112112 /**
113113 * @param ContainerInterface $container
114- * @return FastRoute
114+ * @return FastRouteRouter
115115 */
116116 public function __invoke(ContainerInterface $container)
117117 {
118- return new FastRoute ();
118+ return new FastRouteRouter ();
119119 }
120120}
121121```
@@ -141,7 +141,7 @@ class as an invokable:
141141``` php
142142$container->setInvokableClass(
143143 'Zend\Expressive\Router\RouterInterface',
144- 'Zend\Expressive\Router\FastRoute '
144+ 'Zend\Expressive\Router\FastRouteRouter '
145145);
146146```
147147
@@ -154,7 +154,7 @@ example, we will be defining three factories:
154154- A factory to register as ` FastRoute\DispatcherFactory ` and return a callable
155155 factory that returns a ` RegexBasedAbstract ` instance.
156156- A factory registered as ` Zend\Expressive\Router\RouterInterface ` , which
157- creates and returns a ` Zend\Expressive\Router\FastRoute ` instance composing the
157+ creates and returns a ` Zend\Expressive\Router\FastRouteRouter ` instance composing the
158158 two services.
159159
160160Sound difficult? It's not; we've essentially done it above already!
@@ -208,7 +208,7 @@ class FastRouteDispatcherFactory
208208namespace Application\Container;
209209
210210use Interop\Container\ContainerInterface;
211- use Zend\Expressive\Router\FastRoute as FastRouteBridge;
211+ use Zend\Expressive\Router\FastRouteRouter as FastRouteBridge;
212212
213213class RouterFactory
214214{
0 commit comments