Commit 62be7be5 authored by Jon Pugh's avatar Jon Pugh

Return safely if there are no configs for that type.

parent 00d334ea
......@@ -32,6 +32,9 @@ class Service {
* Write this service's configurations.
protected function writeConfigurations() {
if (empty($this->getConfigurations()[$this->context->type])) {
foreach ($this->getConfigurations()[$this->context->type] as $configuration_class) {
$config = new $configuration_class($this->context, $this);
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