mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 18:48:56 +02:00
Added a a helper method to the runtime that merges env specific options with global ones
This commit is contained in:
@@ -43,12 +43,9 @@ class CacheWarmupTask extends AbstractTask
|
||||
|
||||
protected function getOptions()
|
||||
{
|
||||
$userGlobalOptions = $this->runtime->getConfigOption('symfony', []);
|
||||
$userEnvOptions = $this->runtime->getEnvOption('symfony', []);
|
||||
$options = array_merge(
|
||||
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
|
||||
(is_array($userGlobalOptions) ? $userGlobalOptions : []),
|
||||
(is_array($userEnvOptions) ? $userEnvOptions : []),
|
||||
$this->runtime->getMergedEnvAndConfigOption('symfony', [], []),
|
||||
$this->options
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user