zendframework/ZFTool — pull request #80 by RalfEggert (2013-12-11 22:24:01+00:00)
Title: [WIP] Write configuration when creating a controller

The "create controller" function was amended to write configuration data to the module of the new controller:

- Add the controller as an invokable to the ControllerLoader configuration
- Add the TemplatePathStack to the ViewManager configuration and make sure it is not overwritten.

By passing the additional --no-config parameter the configuration writing can be turned off. If the --no-config parameter is not passed the configuration is always written.

zf.php create controller [] [--no-config]

More stuff to come:

- Create an optional factory when creating a new controller and add the controller to the "factories" section of the ControllerLoader
- Create a factory for an existing controller and change the ControllerLoader configuration