Commit 8b55c28f authored by Jon Pugh's avatar Jon Pugh

Use setProperty, then save the context. save() method uses properties now, not ->config.

parent 124a2447
......@@ -246,9 +246,9 @@ class ServicesCommand extends Command
try {
$this->context->config[$services_key][$service] = $service_info;
if (!empty($properties)) {
$this->context->config[$services_key][$service]['properties'] = $properties;
}
$this->context->config[$services_key][$service]['properties'] = $properties;
$this->context->setProperty($services_key, $this->context->config[$services_key]);
$this->context->save();
$this->io->success('Service saved to Context!');
}
......@@ -276,6 +276,10 @@ class ServicesCommand extends Command
$property = Provision::newProperty($property);
}
if ($this->context->getService($service)->getProperty($name)) {
$property->default = $this->context->getService($service)->getProperty($name);
}
// If option does not exist, ask for it.
if (!empty($this->input->getOption($name))) {
$properties[$name] = $this->input->getOption($name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment