Skip to content
Snippets Groups Projects
Commit 4f128797 authored by Jon Pugh's avatar Jon Pugh
Browse files

Pass Application to Context class.

parent 314ed89a
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ class SaveCommand extends Command ...@@ -113,7 +113,7 @@ class SaveCommand extends Command
} }
$properties = $this->askForContextProperties(); $properties = $this->askForContextProperties();
$class = Context::getClassName($this->input->getOption('context_type')); $class = Context::getClassName($this->input->getOption('context_type'));
$this->context = new $class($input->getArgument('context_name'), $this->getApplication()->getConfig()->all(), $properties); $this->context = new $class($input->getArgument('context_name'), $this->getApplication()->getConfig()->all(), $this->getApplication(), $properties);
} }
// Delete context config. // Delete context config.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment