Browse Source

Renamed method

pull/1/head
Yanick Witschi 8 years ago
parent
commit
532a3146b0
  1. 9
      src/Runtime/Runtime.php
  2. 2
      src/Task/BuiltIn/Composer/DumpAutoloadTask.php
  3. 2
      src/Task/BuiltIn/Composer/InstallTask.php
  4. 2
      src/Task/BuiltIn/Symfony/AsseticDumpTask.php
  5. 2
      src/Task/BuiltIn/Symfony/AssetsInstallTask.php
  6. 2
      src/Task/BuiltIn/Symfony/CacheClearTask.php
  7. 2
      src/Task/BuiltIn/Symfony/CacheWarmupTask.php

9
src/Runtime/Runtime.php

@ -233,15 +233,14 @@ class Runtime
* Shortcut to get the the configuration option for a specific environment and merge it with * Shortcut to get the the configuration option for a specific environment and merge it with
* the global one (environment specific overrides the global one if present). * the global one (environment specific overrides the global one if present).
* *
* @param $key * @param $key
* @param null $defaultEnv * @param array $defaultEnv
* @param null $defaultConfig
* *
* @return array * @return array
*/ */
public function getMergedEnvAndConfigOption($key, $defaultEnv = null, $defaultConfig = null) public function getMergedOption($key, $defaultEnv = [])
{ {
$userGlobalOptions = $this->getConfigOption($key, $defaultConfig); $userGlobalOptions = $this->getConfigOption($key, $defaultEnv);
$userEnvOptions = $this->getEnvOption($key, $defaultEnv); $userEnvOptions = $this->getEnvOption($key, $defaultEnv);
return array_merge( return array_merge(

2
src/Task/BuiltIn/Composer/DumpAutoloadTask.php

@ -45,7 +45,7 @@ class DumpAutoloadTask extends AbstractTask
{ {
$options = array_merge( $options = array_merge(
['path' => 'composer', 'flags' => '--optimize'], ['path' => 'composer', 'flags' => '--optimize'],
$this->runtime->getMergedEnvAndConfigOption('composer', [], []), $this->runtime->getMergedOption('composer'),
$this->options $this->options
); );

2
src/Task/BuiltIn/Composer/InstallTask.php

@ -45,7 +45,7 @@ class InstallTask extends AbstractTask
{ {
$options = array_merge( $options = array_merge(
['path' => 'composer', 'flags' => '--optimize-autoloader'], ['path' => 'composer', 'flags' => '--optimize-autoloader'],
$this->runtime->getMergedEnvAndConfigOption('composer', [], []), $this->runtime->getMergedOption('composer'),
$this->options $this->options
); );

2
src/Task/BuiltIn/Symfony/AsseticDumpTask.php

@ -45,7 +45,7 @@ class AsseticDumpTask extends AbstractTask
{ {
$options = array_merge( $options = array_merge(
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''], ['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
$this->runtime->getMergedEnvAndConfigOption('symfony', [], []), $this->runtime->getMergedOption('symfony'),
$this->options $this->options
); );

2
src/Task/BuiltIn/Symfony/AssetsInstallTask.php

@ -45,7 +45,7 @@ class AssetsInstallTask extends AbstractTask
{ {
$options = array_merge( $options = array_merge(
['console' => 'bin/console', 'env' => 'dev', 'target' => 'web', 'flags' => '--symlink --relative'], ['console' => 'bin/console', 'env' => 'dev', 'target' => 'web', 'flags' => '--symlink --relative'],
$this->runtime->getMergedEnvAndConfigOption('symfony', [], []), $this->runtime->getMergedOption('symfony'),
$this->options $this->options
); );

2
src/Task/BuiltIn/Symfony/CacheClearTask.php

@ -45,7 +45,7 @@ class CacheClearTask extends AbstractTask
{ {
$options = array_merge( $options = array_merge(
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''], ['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
$this->runtime->getMergedEnvAndConfigOption('symfony', [], []), $this->runtime->getMergedOption('symfony'),
$this->options $this->options
); );

2
src/Task/BuiltIn/Symfony/CacheWarmupTask.php

@ -45,7 +45,7 @@ class CacheWarmupTask extends AbstractTask
{ {
$options = array_merge( $options = array_merge(
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''], ['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
$this->runtime->getMergedEnvAndConfigOption('symfony', [], []), $this->runtime->getMergedOption('symfony'),
$this->options $this->options
); );

Loading…
Cancel
Save