diff --git a/src/Command/SaveCommand.php b/src/Command/SaveCommand.php index a54da2296f6863cf1745098c1b8906b12282659d..f894612bc87caac5524b8b203eadf39bc12ad3e1 100644 --- a/src/Command/SaveCommand.php +++ b/src/Command/SaveCommand.php @@ -228,7 +228,7 @@ class SaveCommand extends Command */ public function askForContext($question = 'Choose a context') { - $options = $this->getApplication()->getAllContextsOptions(); + $options = $this->getProvision()->getAllContextsOptions(); // If there are options, add "new" to the list. if (count($options)) { @@ -360,7 +360,7 @@ class SaveCommand extends Command } } else { - $contexts[$property] = $this->io->choice("Select $property context", $this->getApplication()->getAllContextsOptions($context_type)); + $contexts[$property] = $this->io->choice("Select $property context", $this->getProvision()->getAllContextsOptions($context_type)); } } return $contexts;