eZ\Publish\Core\REST\Server\Service\ExpressionRouterRootResourceBuilder::buildRootResource PHP 메소드

buildRootResource() 공개 메소드

Build root resource.
public buildRootResource ( ) : array | Root
리턴 array | eZ\Publish\Core\REST\Common\Values\Root
    public function buildRootResource()
    {
        $language = new ExpressionLanguage();
        $resources = array();
        foreach ($this->resourceConfig as $name => $resource) {
            $resources[] = new Values\Resource($name, $resource['mediaType'], $language->evaluate($resource['href'], ['router' => $this->router, 'templateRouter' => $this->templateRouter]));
        }
        return new Root($resources);
    }
ExpressionRouterRootResourceBuilder