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}"})',
),
)
파일 보기
프로젝트 열기: ezsystems/ezpublish-kernel
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( Symfony\Component\Routing\RouterInterface $router, Symfony\Component\Routing\RouterInterface $templateRouter, array $resourceConfig ) |
Creates a new resource builder. |
|
buildRootResource ( ) : array | Root |
Build root resource. |
|
메소드 상세
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()
공개 메소드
프로퍼티 상세
$resourceConfig 보호되어 있는 프로퍼티
protected array $resourceConfig |
리턴 |
array |
|
protected RouterInterface,Symfony\Component\Routing $router |
리턴 |
Symfony\Component\Routing\RouterInterface |
|
$templateRouter 보호되어 있는 프로퍼티
protected RouterInterface,Symfony\Component\Routing $templateRouter |
리턴 |
Symfony\Component\Routing\RouterInterface |
|