public function buildService(
        $serviceClass,
        ConfigResolverInterface $resolver,
        PageGateway $storageGateway,
        ContentService $contentService
    ) {
        $pageSettings = $resolver->getParameter('ezpage');
        /** @var $pageService \eZ\Publish\Core\FieldType\Page\PageService */
        $pageService = new $serviceClass(
            $contentService,
            $pageSettings['layouts'],
            $pageSettings['blocks']
        );
        $pageService->setStorageGateway($storageGateway);

        return $pageService;
    }
public function buildService(
        $serviceClass,
        ConfigResolverInterface $resolver,
        PageGateway $storageGateway,
        ContentService $contentService
    ) {
        $pageSettings = $resolver->getParameter('ezpage');
        /** @var $pageService \eZ\Publish\Core\FieldType\Page\PageService */
        $pageService = new $serviceClass(
            $contentService,
            $pageSettings['layouts'],
            $pageSettings['blocks']
        );
        $pageService->setStorageGateway($storageGateway);

        return $pageService;
    }
public function buildService ( $ serviceClass , ConfigResolverInterface $ resolver , PageGateway $ storageGateway , ContentService $ contentService ) { $ pageSettings = $ resolver -> getParameter ( 'ezpage' ) ; /** @var $pageService \eZ\Publish\Core\FieldType\Page\PageService */ $ pageService = new $ serviceClass ( $ contentService , $ pageSettings [ 'layouts' ] , $ pageSettings [ 'blocks' ] ) ; $ pageService -> setStorageGateway ( $ storageGateway ) ; return $ pageService ; }
Builds the page service.

@param string $serviceClass the class of the page service
@param ConfigResolverInterface $resolver
@param \eZ\Publish\Core\FieldType\Page\PageStorage\Gateway $storageGateway
@param \eZ\Publish\API\Repository\ContentService $contentService

@return \eZ\Publish\Core\FieldType\Page\PageService
Builds the page service .