src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Create content negotiation configuration based on payload and discovered
     * controller service name
     *
     * @param DoctrineRestServiceEntity $details
     * @param string $controllerService
     */
Create content negotiation configuration based on payload and discovered
controller service name

@param DoctrineRestServiceEntity $details
@param string $controllerService
Create content negotiation configuration based on payload and discovered controller service name @param DoctrineRestServiceEntity $details @param string $controllerService
public function createContentNegotiationConfig(DoctrineRestServiceEntity $details, $controllerService)
    {
        $config = [
            'controllers' => [
                $controllerService => $details->selector,
            ],
        ];
        $whitelist = $details->acceptWhitelist;
        if (! empty($whitelist)) {
            $config['accept_whitelist'] = [$controllerService => $whitelist];
        }
        $whitelist = $details->contentTypeWhitelist;
        if (! empty($whitelist)) {
            $config['content_type_whitelist'] = [$controllerService => $whitelist];
        }
        $config = ['zf-content-negotiation' => $config];
        $this->configResource->patch($config, true);
    }
public function createContentNegotiationConfig ( DoctrineRestServiceEntity $ details , $ controllerService ) { $ config = [ 'controllers' => [ $ controllerService => $ details -> selector , ] , ] ; $ whitelist = $ details -> acceptWhitelist ; if ( ! empty ( $ whitelist ) ) { $ config [ 'accept_whitelist' ] = [ $ controllerService => $ whitelist ] ; } $ whitelist = $ details -> contentTypeWhitelist ; if ( ! empty ( $ whitelist ) ) { $ config [ 'content_type_whitelist' ] = [ $ controllerService => $ whitelist ] ; } $ config = [ 'zf-content-negotiation' => $ config ] ; $ this -> configResource -> patch ( $ config , true ) ; }
Create content negotiation configuration based on payload and discovered
 controller service name
Create content negotiation configuration based on payload and discovered controller service name