Commit 6f528bac by Qiang Xue

...

parent 38dcae3d
...@@ -44,7 +44,7 @@ class HelpController extends Controller ...@@ -44,7 +44,7 @@ class HelpController extends Controller
* ~~~ * ~~~
* *
* @param array $args additional anonymous command line arguments. * @param array $args additional anonymous command line arguments.
* You may provide a command-name to display its detailed information. * You may provide a command name to display its detailed information.
* @return integer the exit status * @return integer the exit status
*/ */
public function actionIndex($args = array()) public function actionIndex($args = array())
...@@ -315,7 +315,7 @@ class HelpController extends Controller ...@@ -315,7 +315,7 @@ class HelpController extends Controller
{ {
$options = array(); $options = array();
foreach ($class->getProperties() as $property) { foreach ($class->getProperties() as $property) {
if (!$property->isPublic() || $property->isStatic() || $property->getDeclaringClass()->getName() !== get_class($controller)) { if (!$property->isPublic() || $property->isStatic() || $property->getDeclaringClass()->getName() === 'yii\base\Controller') {
continue; continue;
} }
$name = $property->getName(); $name = $property->getName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment