This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,12 @@ extending class.
279
279
280
280
## AbstractConsoleController
281
281
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 )
283
288
and provides the following functionality:
284
289
285
290
- The method ` setConsole(Zend\Console\Adapter\AdapterInterface $console) ` allows
@@ -306,7 +311,7 @@ and provides the following functionality:
306
311
The composed ` EventManager ` will be configured to listen on the following contexts:
307
312
308
313
- ` Zend\Stdlib\DispatchableInterface `
309
- - ` Zend\Mvc\Controller\AbstractConsoleController `
314
+ - ` Zend\Mvc\Console\ Controller\AbstractConsoleController `
310
315
- ` Zend\Mvc\Controller\AbstractActionController `
311
316
- ` Zend\Mvc\Controller\AbstractController `
312
317
Original file line number Diff line number Diff line change @@ -109,10 +109,14 @@ 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
+ > To use it, you need to install zend-mvc-console via
117
+ ``` bash
118
+ composer require zendframework/zend-mvc-console --sort-packages
119
+ ```
116
120
117
121
To get started, we'll create a "hello world"-style controller, with a single
118
122
action. First, create the file ` HelloController.php ` in the directory
You can’t perform that action at this time.
0 commit comments