src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Delete the REST configuration associated with the given
     * service
     *
     * @param DoctrineRestServiceEntity $entity
     */
Delete the REST configuration associated with the given
service


Delete the REST configuration associated with the given service
public function deleteDoctrineRestConfig(DoctrineRestServiceEntity $entity)
    {
        $config = $this->configResource->fetch(true);
        $hydratorName = $config['zf-hal']['metadata_map'][$entity->entityClass]['hydrator'];
        $objectManagerClass = $config['doctrine-hydrator'][$hydratorName]['object_manager'];
        $key = ['doctrine-hydrator', $hydratorName];
        $this->configResource->deleteKey($key);
        $key = ['zf-apigility', 'doctrine-connected', $entity->resourceClass];
        $this->configResource->deleteKey($key);
        $key = ['zf-rest', $entity->controllerServiceName];
        $this->configResource->deleteKey($key);
        $key = ['zf-content-negotiation', 'controllers', $entity->controllerServiceName];
        $this->configResource->deleteKey($key);
        $key = ['zf-content-negotiation', 'accept_whitelist', $entity->controllerServiceName];
        $this->configResource->deleteKey($key);
        $key = ['zf-content-negotiation', 'content_type_whitelist', $entity->controllerServiceName];
        $this->configResource->deleteKey($key);
        $key = ['zf-hal', 'metadata_map', $entity->collectionClass];
        $this->configResource->deleteKey($key);
        $key = ['zf-hal', 'metadata_map', $entity->entityClass];
        $this->configResource->deleteKey($key);
        $validator = $config['zf-content-validation'][$entity->controllerServiceName]['input_filter'];
        $key = ['zf-content-validation', $entity->controllerServiceName];
        $this->configResource->deleteKey($key);
        $key = ['input_filter_specs', $validator];
        $this->configResource->deleteKey($key);
    }
public function deleteDoctrineRestConfig ( DoctrineRestServiceEntity $ entity ) { $ config = $ this -> configResource -> fetch ( true ) ; $ hydratorName = $ config [ 'zf-hal' ] [ 'metadata_map' ] [ $ entity -> entityClass ] [ 'hydrator' ] ; $ objectManagerClass = $ config [ 'doctrine-hydrator' ] [ $ hydratorName ] [ 'object_manager' ] ; $ key = [ 'doctrine-hydrator' , $ hydratorName ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-apigility' , 'doctrine-connected' , $ entity -> resourceClass ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-rest' , $ entity -> controllerServiceName ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-content-negotiation' , 'controllers' , $ entity -> controllerServiceName ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-content-negotiation' , 'accept_whitelist' , $ entity -> controllerServiceName ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-content-negotiation' , 'content_type_whitelist' , $ entity -> controllerServiceName ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-hal' , 'metadata_map' , $ entity -> collectionClass ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'zf-hal' , 'metadata_map' , $ entity -> entityClass ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ validator = $ config [ 'zf-content-validation' ] [ $ entity -> controllerServiceName ] [ 'input_filter' ] ; $ key = [ 'zf-content-validation' , $ entity -> controllerServiceName ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ key = [ 'input_filter_specs' , $ validator ] ; $ this -> configResource -> deleteKey ( $ key ) ; }
Delete the REST configuration associated with the given
 service
Delete the REST configuration associated with the given service
// Get hydrator name