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

Commit a618e8b

Browse files
committed
Ensure ZendViewRendererFactory entry is fully correct
Updates to mention PhpRenderer, UrlHelper, and ServerUrlHelper as optional requirements, and removes RouterInterface from the list.
1 parent 7452607 commit a618e8b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/book/v3/features/container/factories.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,22 @@ the `TwigExtension` instance (assuming the router was found).
459459
- **Suggested Name**: `Zend\Expressive\Template\TemplateRendererInterface`
460460
- **Requires**: no additional services are required.
461461
- **Optional**:
462-
- `Zend\Expressive\Router\RouterInterface`, in order to inject the custom
463-
url helper implementation.
464462
- `config`, an array or `ArrayAccess` instance. This will be used to further
465463
configure the `ZendView` instance, specifically with the layout template
466464
name, entries for a `TemplateMapResolver`, and and template paths to
467465
inject.
466+
- `Zend\View\Renderer\PhpRenderer`, in order to allow providing custom
467+
extensions and/or re-using an existing configuration; otherwise, a default
468+
instance is created.
468469
- `Zend\View\HelperPluginManager`; if present, will be used to inject the
469-
`PhpRenderer` instance.
470+
`PhpRenderer` instance; otherwise, a default instance is created.
471+
- `Zend\Expressive\Helper\UrlHelper`, in order to provide a URL helper
472+
compatible with zend-expressive-router. If you will not be generating
473+
URLs, this can be omitted.
474+
- `Zend\Expressive\Helper\ServerUrlHelper`, in order to provide a server URL
475+
helper (which provides the scheme and authority for a generated URL)
476+
compatible with zend-expressive-router. If you will not be generating
477+
URLs, this can be omitted.
470478

471479
It consumes the following `config` structure:
472480

0 commit comments

Comments
 (0)