@@ -2,11 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Magium\Configuration; |
| 4 | 4 | |
| 5 | -use Magium\Configuration\Config\Builder; |
|
| 6 | 5 | use Magium\Configuration\Config\BuilderFactory; |
| 7 | 6 | use Magium\Configuration\Config\BuilderFactoryInterface; |
| 8 | 7 | use Magium\Configuration\Config\BuilderInterface; |
| 9 | -use Magium\Configuration\Config\InvalidConfigurationLocationException; |
|
| 10 | 8 | use Magium\Configuration\Config\MissingConfigurationException; |
| 11 | 9 | use Magium\Configuration\File\Context\AbstractContextConfigurationFile; |
| 12 | 10 | use Magium\Configuration\Manager\CacheFactory; |
@@ -51,9 +51,10 @@ |
||
| 51 | 51 | $manager = $factory->getManager(); |
| 52 | 52 | $contexts = $factory->getContextFile()->getContexts(); |
| 53 | 53 | $context = $input->getArgument('context'); |
| 54 | - if ($context) |
|
| 55 | - if (in_array($context, $contexts)) { |
|
| 54 | + if ($context) { |
|
| 55 | + if (in_array($context, $contexts)) { |
|
| 56 | 56 | $contexts = [$context]; |
| 57 | + } |
|
| 57 | 58 | } else { |
| 58 | 59 | throw new InvalidContextException('Context does not exist: ' . $context); |
| 59 | 60 | } |