src/Admin/Model/DoctrineRpcServiceModel.php
/**
     * Create the selector configuration
     *
     * @param string $controllerService
     * @param string $selector
     * @return array
     */
Create the selector configuration
@param string $controllerService
@param string $selector
@return array
Create the selector configuration @param string $controllerService @param string $selector @return array
public function createContentNegotiationConfig($controllerService, $selector = null)
    {
        if (null === $selector) {
            $selector = 'Json';
        }
        $config = [
            'zf-content-negotiation' => [
                'controllers' => [
                    $controllerService => $selector,
                ],
                'accept_whitelist' => [
                    $controllerService => [
                        'application/json',
                        'application/*+json',
                    ],
                ],
                'content_type_whitelist' => [
                    $controllerService => [
                        'application/json',
                    ],
                ],
            ],
        ];
        return $this->configResource->patch($config, true);
    }
public function createContentNegotiationConfig ( $ controllerService , $ selector = null ) { if ( null === $ selector ) { $ selector = 'Json' ; } $ config = [ 'zf-content-negotiation' => [ 'controllers' => [ $ controllerService => $ selector , ] , 'accept_whitelist' => [ $ controllerService => [ 'application/json' , 'application/*+json' , ] , ] , 'content_type_whitelist' => [ $ controllerService => [ 'application/json' , ] , ] , ] , ] ; return $ this -> configResource -> patch ( $ config , true ) ; }
Create the selector configuration
 @param string $controllerService
 @param string $selector
 @return array
Create the selector configuration @param string $controllerService @param string $selector @return array