Commit 930bd969 authored by Jon Pugh's avatar Jon Pugh

add hasService() to subscribers.

parent c5b0662b
......@@ -99,4 +99,19 @@ class ContextSubscriber extends Context
->end()
->end();
}
/**
* Whether or not this Server has a service.
*
* @param $type
* @return bool
*/
public function hasService($type) {
if (isset($this->services[$type])) {
return TRUE;
}
else {
return FALSE;
}
}
}
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