[2.0][DDC-223] Enhanced CLI re-importing the Global Arguments functionality
This commit is contained in:
parent
ca2faba190
commit
3ec23c7272
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user