Skip to content

Commit e9f0bf4

Browse files
committed
Improve the documentation
1 parent e3ba9a3 commit e9f0bf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ You can inject services by type-hinting them:
8888

8989
```php
9090
$app->get('/', function (ResponseInterface $response, Twig $twig) {
91-
return $twig->renderResponse($response, 'home.twig');
91+
return $twig->render($response, 'home.twig');
9292
});
9393
```
9494

@@ -153,3 +153,5 @@ $app = new class() extends \DI\Bridge\Slim\App {
153153
}
154154
};
155155
```
156+
157+
Have a look at [configuring PHP-DI](http://php-di.org/doc/container-configuration.html) for more details.

0 commit comments

Comments
 (0)