skeeks\cms\components\Cms::getRelatedHandler PHP Method

getRelatedHandler() public method

public getRelatedHandler ( string $id ) : PropertyType
$id string service id.
return skeeks\cms\relatedProperties\PropertyType auth client instance.
    public function getRelatedHandler($id)
    {
        if (!array_key_exists($id, $this->_relatedHandlers)) {
            throw new InvalidParamException("Unknown auth property type '{$id}'.");
        }
        if (!is_object($this->_relatedHandlers[$id])) {
            $this->_relatedHandlers[$id] = $this->createRelatedHandler($id, $this->_relatedHandlers[$id]);
        }
        return $this->_relatedHandlers[$id];
    }