You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: doc/book/controllers.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,13 @@ extending class.
279
279
280
280
## AbstractConsoleController
281
281
282
-
`Zend\Mvc\Controller\AbstractConsoleController` extends from [AbstractActionController](#abstractactioncontroller)
282
+
> For version 3, the integration component [zend-mvc-console](https://docs.zendframework.com/zend-mvc-console/) must be installed. It can be done via Composer:
283
+
> ````bash
284
+
> composer require zendframework/zend-mvc-console
285
+
>```
286
+
> If you are not using the component installer, you will need to [add this component as a module](https://docs.zendframework.com/zend-mvc-console/intro/#manual-installation).
287
+
288
+
`Zend\Mvc\Console\Controller\AbstractConsoleController` extends from [AbstractActionController](#abstractactioncontroller)
283
289
and provides the following functionality:
284
290
285
291
- The method `setConsole(Zend\Console\Adapter\AdapterInterface $console)` allows
@@ -306,7 +312,7 @@ and provides the following functionality:
306
312
The composed `EventManager` will be configured to listen on the following contexts:
Copy file name to clipboardExpand all lines: doc/book/quick-start.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,11 +109,17 @@ classes for you to start with:
109
109
post body.
110
110
-`DELETE` expects an "id" to be matched during routing, and will call the
111
111
`delete()` method.
112
-
-`Zend\Mvc\Controller\AbstractConsoleController` extends from
112
+
-`Zend\Mvc\Console\Controller\AbstractConsoleController` extends from
113
113
`AbstractActionController`, but provides methods for retrieving the
114
114
`Zend\Console\Adapter\AdapterInterface` instance, and ensuring that execution
115
115
fails in non-console environments.
116
116
117
+
> For version 3, the integration component [zend-mvc-console](https://docs.zendframework.com/zend-mvc-console/) must be installed. It can be done via Composer:
118
+
> ````bash
119
+
> composer require zendframework/zend-mvc-console
120
+
>```
121
+
> If you are not using the component installer, you will need to [add this component as a module](https://docs.zendframework.com/zend-mvc-console/intro/#manual-installation).
122
+
117
123
To get started, we'll create a "hello world"-style controller, with a single
118
124
action. First, create the file `HelloController.php` in the directory
119
125
`src/<module name>/Controller`. Edit it in your favorite text editor or IDE,
0 commit comments