src/Admin/Model/DoctrineRpcServiceModel.php
/**
     * Update configuration for a content negotiation whitelist for a named controller service
     *
     * @param string $controllerService
     * @param string $headerType
     * @param array $whitelist
     * @return true
     */
Update configuration for a content negotiation whitelist for a named controller service
@param string $controllerService
@param string $headerType
@param array $whitelist
@return true
Update configuration for a content negotiation whitelist for a named controller service @param string $controllerService @param string $headerType @param array $whitelist @return true
public function updateContentNegotiationWhitelist($controllerService, $headerType, array $whitelist)
    {
        if (! in_array($headerType, ['accept', 'content_type'])) {
            throw new PatchException('Invalid content negotiation whitelist type provided', 422);
        }
        $headerType .= '_whitelist';
        $config = $this->configResource->fetch(true);
        $config['zf-content-negotiation'][$headerType][$controllerService] = $whitelist;
        $this->configResource->overwrite($config);
        return true;
    }
public function updateContentNegotiationWhitelist ( $ controllerService , $ headerType , array $ whitelist ) { if ( ! in_array ( $ headerType , [ 'accept' , 'content_type' ] ) ) { throw new PatchException ( 'Invalid content negotiation whitelist type provided' , 422 ) ; } $ headerType .= '_whitelist' ; $ config = $ this -> configResource -> fetch ( true ) ; $ config [ 'zf-content-negotiation' ] [ $ headerType ] [ $ controllerService ] = $ whitelist ; $ this -> configResource -> overwrite ( $ config ) ; return true ; }
Update configuration for a content negotiation whitelist for a named controller service
 @param string $controllerService
 @param string $headerType
 @param array $whitelist
 @return true
Update configuration for a content negotiation whitelist for a named controller service @param string $controllerService @param string $headerType @param array $whitelist @return true
/* @todo define exception in Rpc namespace */