Commit 3ec23c72 authored by guilhermeblanco's avatar guilhermeblanco

[2.0][DDC-223] Enhanced CLI re-importing the Global Arguments functionality

parent ca2faba1
...@@ -161,6 +161,11 @@ class CliController extends AbstractNamespace ...@@ -161,6 +161,11 @@ class CliController extends AbstractNamespace
// Find the correct namespace where the task is defined // Find the correct namespace where the task is defined
$taskName = array_pop($taskPath); $taskName = array_pop($taskPath);
$taskNamespace = $this->_retrieveTaskNamespace($taskPath); $taskNamespace = $this->_retrieveTaskNamespace($taskPath);
// Merge global configuration if it exists
if (($globalArgs = $this->getConfiguration()->getAttribute('globalArguments')) !== null) {
$args = array_merge($globalArgs, $args);
}
$taskNamespace->runTask($taskName, $args); $taskNamespace->runTask($taskName, $args);
} }
......
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