We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d4bce commit 01e9e5fCopy full SHA for 01e9e5f
src/guide/views/template-engines.md
@@ -147,10 +147,12 @@ final class MarkdownRenderer implements TemplateRendererInterface
147
Register your custom renderer:
148
149
```php
150
+use Yiisoft\Container\Reference;
151
+
152
// In configuration
153
'yiisoft/view' => [
154
'renderers' => [
- 'md' => App\View\MarkdownRenderer::class,
155
+ 'md' => Reference::to(App\View\MarkdownRenderer::class),
156
],
157
158
```
@@ -163,7 +165,7 @@ Now you can use `.md` template files:
163
165
164
166
Welcome, {{username}}!
167
-This is a markdown template with **bold** and *italic* text.
168
+This is a Markdown template with **bold** and *italic* text.
169
170
- Feature 1
171
- Feature 2
0 commit comments