src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Create HAL configuration
     *
     * @param DoctrineRestServiceEntity $details
     * @param string $entityClass
     * @param string $collectionClass
     * @param string $routeName
     */
Create HAL configuration
@param DoctrineRestServiceEntity $details
@param string $entityClass
@param string $collectionClass
@param string $routeName
Create HAL configuration @param DoctrineRestServiceEntity $details @param string $entityClass @param string $collectionClass @param string $routeName
public function createHalConfig(DoctrineRestServiceEntity $details, $entityClass, $collectionClass, $routeName)
    {
        $config = [
            'zf-hal' => [
                'metadata_map' => [
                    $entityClass => [
                        'route_identifier_name'  => $details->routeIdentifierName,
                        'entity_identifier_name' => $details->entityIdentifierName,
                        'route_name'             => $routeName,
                    ],
                    $collectionClass => [
                        'entity_identifier_name' => $details->entityIdentifierName,
                        'route_name'             => $routeName,
                        'is_collection'          => true,
                    ],
                ],
            ],
        ];
        if (isset($details->hydratorName)) {
            $config['zf-hal']['metadata_map'][$entityClass]['hydrator'] = $details->hydratorName;
        }
        $this->configResource->patch($config, true);
    }
public function createHalConfig ( DoctrineRestServiceEntity $ details , $ entityClass , $ collectionClass , $ routeName ) { $ config = [ 'zf-hal' => [ 'metadata_map' => [ $ entityClass => [ 'route_identifier_name' => $ details -> routeIdentifierName , 'entity_identifier_name' => $ details -> entityIdentifierName , 'route_name' => $ routeName , ] , $ collectionClass => [ 'entity_identifier_name' => $ details -> entityIdentifierName , 'route_name' => $ routeName , 'is_collection' => true , ] , ] , ] , ] ; if ( isset ( $ details -> hydratorName ) ) { $ config [ 'zf-hal' ] [ 'metadata_map' ] [ $ entityClass ] [ 'hydrator' ] = $ details -> hydratorName ; } $ this -> configResource -> patch ( $ config , true ) ; }
Create HAL configuration
 @param DoctrineRestServiceEntity $details
 @param string $entityClass
 @param string $collectionClass
 @param string $routeName
Create HAL configuration @param DoctrineRestServiceEntity $details @param string $entityClass @param string $collectionClass @param string $routeName