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

Commit 56bedc4

Browse files
committed
Merge branch 'hotfix/98'
Close #98
2 parents d43fef8 + 0a7ed80 commit 56bedc4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

doc/book/quick-start.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ $ cd expressive
1616
## 2. Install Expressive
1717

1818
If you haven't already, [install Composer](https://getcomposer.org). Once you
19-
have, we can install Expressive:
19+
have, we can install Expressive, along with a router and a container:
2020

2121
```bash
22-
$ composer require zendframework/zend-expressive aura/router
22+
$ composer require zendframework/zend-expressive aura/router zendframework/zend-servicemanager
2323
```
2424

2525
> ### Routers
@@ -28,6 +28,14 @@ $ composer require zendframework/zend-expressive aura/router
2828
> middleware. We suggest Aura.Router in the quick start, but you can also
2929
> currently choose from FastRoute and the ZF2 MVC router.
3030
31+
> ### Containers
32+
>
33+
> We highly recommend using dependency injection containers with Expressive;
34+
> they allow you to define dependencies for your middleware, as well as to lazy
35+
> load your middleware only when it needs to be executed. We suggest
36+
> zend-servicemanager in the quick start, but you can also use any container
37+
> supporting [container-interop](https://github.com/container-interop/container-interop).
38+
3139
## 3. Create a web root directory
3240

3341
You'll need a directory from which to serve your application, and for security

0 commit comments

Comments
 (0)