Browse Source

fixes #377

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
caf9948c54
  1. 4
      framework/yii/console/controllers/HelpController.php

4
framework/yii/console/controllers/HelpController.php

@ -13,7 +13,7 @@ use yii\base\InlineAction;
use yii\console\Controller; use yii\console\Controller;
use yii\console\Exception; use yii\console\Exception;
use yii\console\Request; use yii\console\Request;
use yii\helpers\StringHelper; use yii\helpers\Inflector;
/** /**
* This command provides help information about console commands. * This command provides help information about console commands.
@ -96,7 +96,7 @@ class HelpController extends Controller
foreach ($class->getMethods() as $method) { foreach ($class->getMethods() as $method) {
$name = $method->getName(); $name = $method->getName();
if ($method->isPublic() && !$method->isStatic() && strpos($name, 'action') === 0 && $name !== 'actions') { if ($method->isPublic() && !$method->isStatic() && strpos($name, 'action') === 0 && $name !== 'actions') {
$actions[] = StringHelper::camel2id(substr($name, 6)); $actions[] = Inflector::camel2id(substr($name, 6));
} }
} }
sort($actions); sort($actions);

Loading…
Cancel
Save