src/Gzero/Cms/Models/Content.php
protected function getHandler()
    {
        $handler = resolve($this->type->handler);
        if (!$handler instanceof ContentTypeHandler) {
            throw new DomainException("Type: $this->type can't be handled");
        }
        return $handler;
    }
protected function getHandler()
    {
        $handler = resolve($this->type->handler);
        if (!$handler instanceof ContentTypeHandler) {
            throw new DomainException("Type: $this->type can't be handled");
        }
        return $handler;
    }
protected function getHandler ( ) { $ handler = resolve ( $ this -> type -> handler ) ; if ( ! $ handler instanceof ContentTypeHandler ) { throw new DomainException ( "Type: $this->type can't be handled" ) ; } return $ handler ; }
Dynamically resolve content handler

@throws DomainException

@return ContentTypeHandler
Dynamically resolve content handler