Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 112cebd

Browse files
committed
Merge pull request #49 from marcguyer/patch-2
Update path-segregated-uri-generation.md
2 parents 90475a7 + 010651a commit 112cebd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/book/cookbook/path-segregated-uri-generation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
You may want to develop your API as a separate module that you can then drop in
66
to an existing application; you may even want to [path-segregate](https://docs.zendframework.com/zend-expressive/v3/features/router/piping/#path-segregation) it.
77

8-
In such cases, you will want to use a different router instance, which has a
8+
In such cases, you will want to use a different router instance to isolate your routes, which has a
99
huge number of ramifications:
1010

1111
- You'll need separate routing middleware.
@@ -49,6 +49,7 @@ use Zend\Expressive\Helper\UrlHelperFactory;
4949
use Zend\Expressive\Helper\UrlHelperMiddlewareFactory;
5050
use Zend\Expressive\Router\FastRouteRouter;
5151
use Zend\Expressive\Router\Middleware\RouteMiddlewareFactory;
52+
use Zend\Expressive\Router\FastRouteRouterFactory;
5253

5354
class ConfigProvider
5455
{
@@ -213,6 +214,7 @@ namespace Api;
213214
use Psr\Container\ContainerInterface;
214215
use Zend\Expressive\MiddlewareFactory;
215216
use Zend\Expressive\Router\Middleware as RouterMiddleware;
217+
use Zend\Expressive\Router\RouteCollector;
216218
use Zend\ProblemDetails\ProblemDetailsMiddleware;
217219
use Zend\ProblemDetails\ProblemDetailsNotFoundHandler;
218220
use Zend\Stratigility\MiddlewarePipe;

0 commit comments

Comments
 (0)