From 8778dd02a3ef7ccb1314c6ba7185b5136ea18b1e Mon Sep 17 00:00:00 2001 From: Jesus Manuel Olivas Date: Wed, 2 Nov 2016 08:49:33 -0700 Subject: [PATCH] [console Support root option on pre-boostrap. --- bin/drupal.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/drupal.php b/bin/drupal.php index 8775aeabc..19e367976 100644 --- a/bin/drupal.php +++ b/bin/drupal.php @@ -1,8 +1,9 @@ loadConfiguration($root) + ->getConfiguration(); +if ($options = $configuration->get('application.options') ?: []) { + $argvInputReader->setOptionsFromConfiguration($options); +} +$argvInputReader->setOptionsAsArgv(); + if ($root === $appRoot && $argvInputReader->get('root')) { $appRoot = $argvInputReader->get('root'); if (is_dir($appRoot)) { @@ -49,7 +59,6 @@ $appRoot = $root; } } -$argvInputReader->setOptionsAsArgv(); $drupal = new Drupal($autoload, $root, $appRoot); $container = $drupal->boot();