Skip to content

Commit

Permalink
Adding docblocks to console create classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychic authored and gwoo committed Apr 27, 2010
1 parent 10772b7 commit e5d50b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/lithium/console/command/create/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,19 @@
use \lithium\core\Libraries;
use \lithium\util\Inflector;

/**
* Creates a Lithium controller in the \app\controllers namespace.
*
*/
class Controller extends \lithium\console\command\Create {

/**
* Generate a new controller by name.
*
* @param string $name Controller name.
* @param string $null
* @return void
*/
public function run($name = null, $null = null) {
$library = Libraries::get($this->library);
if (empty($library['prefix'])) {
Expand Down
10 changes: 10 additions & 0 deletions libraries/lithium/console/command/create/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@

use \lithium\core\Libraries;

/**
* Creates a new Lithium model in the \app\models namespace.
*
*/
class Model extends \lithium\console\command\Create {

/**
* Creates a new model by name.
*
* @param string $name Model name.
* @param string $null
*/
public function run($name = null, $null = null) {
$library = Libraries::get($this->library);
if (empty($library['prefix'])) {
Expand Down

0 comments on commit e5d50b8

Please sign in to comment.