src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Delete the route associated with the given service
     *
     * @param DoctrineRestServiceEntity $entity
     */
Delete the route associated with the given service
@param DoctrineRestServiceEntity $entity
Delete the route associated with the given service @param DoctrineRestServiceEntity $entity
public function deleteRoute(DoctrineRestServiceEntity $entity)
    {
        $config = $this->configResource->fetch(true);
        $route = $entity->routeName;
        $key   = ['router', 'routes', $route];
        $this->configResource->deleteKey($key);
        $uriKey = array_search($route, $config['zf-versioning']['uri']);
        if ($uriKey !== false) {
            $key = ['zf-versioning', 'uri', $uriKey];
            $this->configResource->deleteKey($key);
        }
    }
public function deleteRoute ( DoctrineRestServiceEntity $ entity ) { $ config = $ this -> configResource -> fetch ( true ) ; $ route = $ entity -> routeName ; $ key = [ 'router' , 'routes' , $ route ] ; $ this -> configResource -> deleteKey ( $ key ) ; $ uriKey = array_search ( $ route , $ config [ 'zf-versioning' ] [ 'uri' ] ) ; if ( $ uriKey !== false ) { $ key = [ 'zf-versioning' , 'uri' , $ uriKey ] ; $ this -> configResource -> deleteKey ( $ key ) ; } }
Delete the route associated with the given service
 @param DoctrineRestServiceEntity $entity
Delete the route associated with the given service @param DoctrineRestServiceEntity $entity