Doccomment can now override context command name
This commit is contained in:
1 parent
ae17abb6c1
commit
81dea747b2
2 files changed
+4
-2
No files matched your search
+3
-2
@@ -41,7 +41,8 @@ class Context
|
||||
$info[$key] = $value;
|
||||
}
|
||||
if (count($info)>0) {
|
||||
$this->addCommand($method->getName(), [$this, $method->getName()], $info);
|
||||
$cmdName = array_key_exists("command",$info)?$info["command"]:$method->getName();
|
||||
$this->addCommand($cmdName, [$this, $method->getName()], $info);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -128,4 +129,4 @@ class Context
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user