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);
    }
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);
    }
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 ) ; }
Build root resource.

@return array|\eZ\Publish\Core\REST\Common\Values\Root
Build root resource .