Skip to content

Commit

Permalink
Add default config properties to generated classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 5, 2014
1 parent f381f87 commit f470a44
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Console/Templates/default/classes/behavior.ctp
Expand Up @@ -23,4 +23,11 @@ use Cake\ORM\Table;
*/
class <?= $name ?>Behavior extends Behavior {

/**
* Default configuration.
*
* @var array
*/
protected $_defaultConfig = [];

}
7 changes: 7 additions & 0 deletions src/Console/Templates/default/classes/component.ctp
Expand Up @@ -23,4 +23,11 @@ use Cake\Controller\ComponentRegistry;
*/
class <?= $name ?>Component extends Component {

/**
* Default configuration.
*
* @var array
*/
protected $_defaultConfig = [];

}
7 changes: 7 additions & 0 deletions src/Console/Templates/default/classes/helper.ctp
Expand Up @@ -23,4 +23,11 @@ use Cake\View\View;
*/
class <?= $name ?>Helper extends Helper {

/**
* Default configuration.
*
* @var array
*/
protected $_defaultConfig = [];

}

0 comments on commit f470a44

Please sign in to comment.