Commit bd355a3b authored by Armando Lüscher's avatar Armando Lüscher

Fix command config method.

parent b65d7da7
...@@ -185,21 +185,21 @@ abstract class Command ...@@ -185,21 +185,21 @@ abstract class Command
/** /**
* Get command config * Get command config
* *
* Look for parameter $name if found return it, if not return null. * Look for config $name if found return it, if not return null.
* If $name is not set return the all set params * If $name is not set return all set config.
* *
* @param string|null $name * @param string|null $name
* @return mixed * @return mixed
*/ */
public function getConfig($name = null) public function getConfig($name = null)
{ {
if ($name === null) {
return $this->config;
}
if (isset($this->config[$name])) { if (isset($this->config[$name])) {
return $this->config[$name]; return $this->config[$name];
} else {
return null;
} }
return null;
return $this->config;
} }
/** /**
......
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