Skip to content
This repository was 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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,28 @@ You can also generate the zftool.phar using the `bin/create-phar` command as rep

### Module creation

zf.php create module <name> [<path>]
zf.php create module <moduleName> [<path>] [--ignore-conventions|-i]

<name> The name of the module to be created
<path> The path to the root folder of the ZF2 application (optional)
<moduleName> The name of the module to be created
<path> The path to the root folder of the ZF2 application (optional)
--ignore-conventions | -i Ignore coding conventions

### Controller creation:
zf.php create controller <name> <module> [<path>]
zf.php create controller <controllerName> <moduleName> [<path>] [--ignore-conventions|-i]

<name> The name of the controller to be created
<module> The module in which the controller should be created
<path> The root path of a ZF2 application where to create the controller
<controllerName> The name of the controller to be created
<moduleName> The module in which the controller should be created
<path> The root path of a ZF2 application where to create the controller
--ignore-conventions | -i Ignore coding conventions

### Action creation:
zf.php create action <name> <controller> <module> [<path>]
zf.php create action <actionName> <controllerName> <moduleName> [<path>] [--ignore-conventions|-i]

<name> The name of the action to be created
<controller> The name of the controller in which the action should be created
<module> The module containing the controller
<path> The root path of a ZF2 application where to create the action
<actionName> The name of the action to be created
<controllerName> The name of the controller in which the action should be created
<moduleName> The module containing the controller
<path> The root path of a ZF2 application where to create the action
--ignore-conventions | -i Ignore coding conventions

### Application configuration

Expand Down
6 changes: 3 additions & 3 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
),
'zftool-create-module' => array(
'options' => array(
'route' => 'create module <name> [<path>]',
'route' => 'create module <moduleName> [<path>] [--ignore-conventions|-i]',
'defaults' => array(
'controller' => 'ZFTool\Controller\Create',
'action' => 'module',
Expand All @@ -101,7 +101,7 @@
),
'zftool-create-controller' => array(
'options' => array(
'route' => 'create controller <name> <module> [<path>]',
'route' => 'create controller <controllerName> <moduleName> [<path>] [--ignore-conventions|-i]',
'defaults' => array(
'controller' => 'ZFTool\Controller\Create',
'action' => 'controller',
Expand All @@ -110,7 +110,7 @@
),
'zftool-create-action' => array(
'options' => array(
'route' => 'create action <name> <controllerName> <module>',
'route' => 'create action <actionName> <controllerName> <moduleName> [<path>] [--ignore-conventions|-i]',
'defaults' => array(
'controller' => 'ZFTool\Controller\Create',
'action' => 'method',
Expand Down
Loading