src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Creates REST configuration
     *
     * @param DoctrineRestServiceEntity $details
     * @param string $controllerService
     * @param string $resourceClass
     * @param string $routeName
     */
Creates REST configuration
@param DoctrineRestServiceEntity $details
@param string $controllerService
@param string $resourceClass
@param string $routeName
Creates REST configuration @param DoctrineRestServiceEntity $details @param string $controllerService @param string $resourceClass @param string $routeName
public function createRestConfig(DoctrineRestServiceEntity $details, $controllerService, $resourceClass, $routeName)
    {
        $config = ['zf-rest' => [
            $controllerService => [
                'listener'                   => $resourceClass,
                'route_name'                 => $routeName,
                'route_identifier_name'      => $details->routeIdentifierName,
                'entity_identifier_name'     => $details->entityIdentifierName,
                'collection_name'            => $details->collectionName,
                'entity_http_methods'        => $details->entityHttpMethods,
                'collection_http_methods'    => $details->collectionHttpMethods,
                'collection_query_whitelist' => $details->collectionQueryWhitelist ?: [],
                'page_size'                  => $details->pageSize,
                'page_size_param'            => $details->pageSizeParam,
                'entity_class'               => $details->entityClass,
                'collection_class'           => $details->collectionClass,
                'service_name'               => $details->serviceName,
            ],
        ]];
        $this->configResource->patch($config, true);
    }
public function createRestConfig ( DoctrineRestServiceEntity $ details , $ controllerService , $ resourceClass , $ routeName ) { $ config = [ 'zf-rest' => [ $ controllerService => [ 'listener' => $ resourceClass , 'route_name' => $ routeName , 'route_identifier_name' => $ details -> routeIdentifierName , 'entity_identifier_name' => $ details -> entityIdentifierName , 'collection_name' => $ details -> collectionName , 'entity_http_methods' => $ details -> entityHttpMethods , 'collection_http_methods' => $ details -> collectionHttpMethods , 'collection_query_whitelist' => $ details -> collectionQueryWhitelist ? : [ ] , 'page_size' => $ details -> pageSize , 'page_size_param' => $ details -> pageSizeParam , 'entity_class' => $ details -> entityClass , 'collection_class' => $ details -> collectionClass , 'service_name' => $ details -> serviceName , ] , ] ] ; $ this -> configResource -> patch ( $ config , true ) ; }
Creates REST configuration
 @param DoctrineRestServiceEntity $details
 @param string $controllerService
 @param string $resourceClass
 @param string $routeName
Creates REST configuration @param DoctrineRestServiceEntity $details @param string $controllerService @param string $resourceClass @param string $routeName