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

Commit 7d27d19

Browse files
committed
Fixes #239 : AbstractConsoleController namespace
1 parent 4c4a3a9 commit 7d27d19

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

doc/book/controllers.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,12 @@ extending class.
279279

280280
## AbstractConsoleController
281281

282-
`Zend\Mvc\Controller\AbstractConsoleController` extends from [AbstractActionController](#abstractactioncontroller)
282+
> To use it, you need to install zend-mvc-console via
283+
```bash
284+
composer require zendframework/zend-mvc-console --sort-packages
285+
```
286+
287+
`Zend\Mvc\Console\Controller\AbstractConsoleController` extends from [AbstractActionController](#abstractactioncontroller)
283288
and provides the following functionality:
284289

285290
- The method `setConsole(Zend\Console\Adapter\AdapterInterface $console)` allows
@@ -306,7 +311,7 @@ and provides the following functionality:
306311
The composed `EventManager` will be configured to listen on the following contexts:
307312

308313
- `Zend\Stdlib\DispatchableInterface`
309-
- `Zend\Mvc\Controller\AbstractConsoleController`
314+
- `Zend\Mvc\Console\Controller\AbstractConsoleController`
310315
- `Zend\Mvc\Controller\AbstractActionController`
311316
- `Zend\Mvc\Controller\AbstractController`
312317

doc/book/quick-start.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,14 @@ classes for you to start with:
109109
post body.
110110
- `DELETE` expects an "id" to be matched during routing, and will call the
111111
`delete()` method.
112-
- `Zend\Mvc\Controller\AbstractConsoleController` extends from
112+
- `Zend\Mvc\Console\Controller\AbstractConsoleController` extends from
113113
`AbstractActionController`, but provides methods for retrieving the
114114
`Zend\Console\Adapter\AdapterInterface` instance, and ensuring that execution
115115
fails in non-console environments.
116+
> To use it, you need to install zend-mvc-console via
117+
```bash
118+
composer require zendframework/zend-mvc-console --sort-packages
119+
```
116120

117121
To get started, we'll create a "hello world"-style controller, with a single
118122
action. First, create the file `HelloController.php` in the directory

0 commit comments

Comments
 (0)