eZ\Bundle\EzPublishRestBundle\RequestParser\Router::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 InvalidArgumentException("No such attribute '{$attribute}' in route matched from {$href}");
        }
        return $parsingResult[$attribute];
    }