public function resolve(string $type, string $reference)
    {
        if (!isset($this->resolvers[$type]))
            throw new \InvalidArgumentException("Unknown resolver type: " . $type);

        return $this->resolvers[$type]['resolver']->resolve($reference);
    }
public function resolve(string $type, string $reference)
    {
        if (!isset($this->resolvers[$type]))
            throw new \InvalidArgumentException("Unknown resolver type: " . $type);

        return $this->resolvers[$type]['resolver']->resolve($reference);
    }
public function resolve ( string $ type , string $ reference ) { if ( ! isset ( $ this -> resolvers [ $ type ] ) ) throw new \ InvalidArgumentException ( "Unknown resolver type: " . $ type ) ; return $ this -> resolvers [ $ type ] [ 'resolver' ] -> resolve ( $ reference ) ; }
Resolve a reference of a specific type
@param string $type The reference type
@param string $reference What to resolve
@return string The resolved element
Resolve a reference of a specific type