Commit 5b9110a3 authored by Jon Pugh's avatar Jon Pugh

Fixing check for service Subscription

parent b44de4b5
......@@ -55,7 +55,7 @@ class SiteContext extends PlatformContext implements ConfigurationInterface
}
// Load http service from platform if site doesn't have them.
if (!$this->hasService('http') && $this->platform->hasService('http')) {
if (!isset($this->serviceSubscriptions['http']) && $this->platform->hasService('http')) {
$this->serviceSubscriptions['http'] = $this->platform->getSubscription('http');
$this->serviceSubscriptions['http']->setContext($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