Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

[WIP] Write configuration when creating a controller #80

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

RalfEggert
Copy link

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 <name> <module> [<path>] [--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

@raphaeldealmeida
Copy link
Contributor

I hope anxious for this feature merged on master.
Thanks

@Goram
Copy link

Goram commented Nov 12, 2014

What is the holdup here? :)

@gianarb gianarb mentioned this pull request Nov 12, 2014
@Thinkscape
Copy link
Member

@RalfEggert what's the status of that? Is it finished ? Should we wait ? Review and merge ?

@RalfEggert
Copy link
Author

@Thinkscape

same as here #81 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants