Skip to content

Commit c603dd1

Browse files
committed
Pass the correct environment string.
1 parent 2812ad6 commit c603dd1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/Configurator/CliRunner.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Danack\Console\Command\Command;
99
use Danack\Console\Input\InputArgument;
1010
use Auryn\Injector;
11-
11+
use Configurator\ConfiguratorException;
1212

1313
/**
1414
*
@@ -186,6 +186,10 @@ function execute() {
186186
try {
187187
$parsedCommand = $this->console->parseCommandLine();
188188
}
189+
catch(ConfiguratorException $ce) {
190+
echo "Problem running configuration: ".$ce->getMessage();
191+
exit(-1);
192+
}
189193
catch(\Exception $e) {
190194
//@TODO change to just catch parseException when that's implemented
191195
$output = new BufferedOutput();

src/Configurator/Configurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function addPHPConfig($filename)
174174
}
175175

176176
if (isset($evaluate) == true) {
177-
$calculatedValues = $evaluate($this->getConfig(), $environment);
177+
$calculatedValues = $evaluate($this->getConfig(), $this->environment);
178178
$this->addConfigOverride($calculatedValues);
179179
}
180180
}

0 commit comments

Comments
 (0)