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

Standardized the request params initialization #81

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

RalfEggert
Copy link

The parameters for module, controller and action were build up in every action and were implemented with some inconsistencies. This PR tidies up and implements standardized request parameters for all action methods in the CreateController. These parameters now follow the ZF2 coding standards:

http://framework.zend.com/wiki/display/ZFDEV2/Coding+Standards

For users who do not want to follow these coding standards an optional parameter was introduced. If the users adds "--ignore-conventions" or "-i" at the end of the "create module", "create controller", and "create action" command the coding stanards are ignored to give more flexibility.

In addition the code is generated with Zend\Code\Generator and adds DocBlocks skeletons. Also the CreateController was tidied up a little to follow ZF2 coding standards.

weierophinney and others added 6 commits September 4, 2013 09:12
@Thinkscape
Copy link
Member

@RalfEggert I'm sorry for monstrous delay! Can you give me status update on that ?

@RalfEggert
Copy link
Author

@Thinkscape

Actually, due to the lack of feedback on this pull request, I cloned ZFTool some time ago and started implementing all the features I needed on my own clone:

https://github.com/RalfEggert/FrilleZFTool

I did a lot of heavy rework on the whole tool and I am afraid it will be quite hard to integrate all this back into the original ZFTool. Then during the time I lost the focus on it.

Anyway I have some plans for a whole new cli tool for the ZF. ZFTool is quite hard to maintain and extend, so a proper base might make more sense than a rewrite.

@Thinkscape
Copy link
Member

Interesting. Could you elaborate on that? How is it hard to maintain? It's just a bunch of controllers and routes...

@RalfEggert
Copy link
Author

@Thinkscape

Well, I tried to extends it but it needs a lot of refactoring . Just look at this controller. It is a bowl of spaghetti-code stuffed into a controller.

https://github.com/zendframework/ZFTool/blob/master/src/ZFTool/Controller/CreateController.php

Then for example this controller is rebuilding the classmap_generator.php

https://github.com/zendframework/ZFTool/blob/master/src/ZFTool/Controller/ClassmapController.php

Just two examples.

@Thinkscape
Copy link
Member

Blame @ezimuel ;-)) Enrico ^ thoughts ?

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.

5 participants