PHP 클래스 eZ\Publish\Core\REST\Server\Service\ExpressionRouterRootResourceBuilder

This class builds a Root from an array building the href's using ExpressionLanguage to build href's from the router or templateRouter. Example $resourceConfig structure: array( 'content' => array( 'mediaType' => '', 'href' => 'router.generate("ezpublish_rest_listContentTypes")', ), 'usersByRoleId' => array( 'mediaType' => 'UserRefList', 'href' => 'templateRouter.generate("ezpublish_rest_loadUsers", {roleId: "{roleId}"})', ), )
상속: implements eZ\Publish\Core\REST\Server\Service\RootResourceBuilderInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$resourceConfig array
$router Symfony\Component\Routing\RouterInterface
$templateRouter Symfony\Component\Routing\RouterInterface

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Routing\RouterInterface $router, Symfony\Component\Routing\RouterInterface $templateRouter, array $resourceConfig ) Creates a new resource builder.
buildRootResource ( ) : array | Root Build root resource.

메소드 상세

__construct() 공개 메소드

Creates a new resource builder.
public __construct ( Symfony\Component\Routing\RouterInterface $router, Symfony\Component\Routing\RouterInterface $templateRouter, array $resourceConfig )
$router Symfony\Component\Routing\RouterInterface
$templateRouter Symfony\Component\Routing\RouterInterface
$resourceConfig array

buildRootResource() 공개 메소드

Build root resource.
public buildRootResource ( ) : array | Root
리턴 array | eZ\Publish\Core\REST\Common\Values\Root

프로퍼티 상세

$resourceConfig 보호되어 있는 프로퍼티

protected array $resourceConfig
리턴 array

$router 보호되어 있는 프로퍼티

protected RouterInterface,Symfony\Component\Routing $router
리턴 Symfony\Component\Routing\RouterInterface

$templateRouter 보호되어 있는 프로퍼티

protected RouterInterface,Symfony\Component\Routing $templateRouter
리턴 Symfony\Component\Routing\RouterInterface