eZ\Publish\Core\REST\Common\RequestParser\Pattern::parseHref PHP Method

parseHref() public method

public parseHref ( $href, $attribute )
    public function parseHref($href, $attribute)
    {
        $parsingResult = $this->parse($href);
        if (!isset($parsingResult[$attribute])) {
            throw new Exceptions\InvalidArgumentException("No such attribute '{$attribute}' in route matched from {$href}\n" . print_r($parsingResult, true));
        }
        return $parsingResult[$attribute];
    }