src/Admin/Model/DoctrineRestServiceModel.php
/**
     * Update the route for an existing service
     *
     * @param DoctrineRestServiceEntity $original
     * @param DoctrineRestServiceEntity $update
     */
Update the route for an existing service
@param DoctrineRestServiceEntity $original
@param DoctrineRestServiceEntity $update
Update the route for an existing service @param DoctrineRestServiceEntity $original @param DoctrineRestServiceEntity $update
public function updateRoute(DoctrineRestServiceEntity $original, DoctrineRestServiceEntity $update)
    {
        $route = $update->routeMatch;
        if (! $route) {
            return;
        }
        $routeName = $original->routeName;
        $config = [
            'router' => [
                'routes' => [
                    $routeName => [
                        'options' => [
                            'route' => $route,
                        ],
                    ],
                ],
            ],
        ];
        $this->configResource->patch($config, true);
    }
public function updateRoute ( DoctrineRestServiceEntity $ original , DoctrineRestServiceEntity $ update ) { $ route = $ update -> routeMatch ; if ( ! $ route ) { return ; } $ routeName = $ original -> routeName ; $ config = [ 'router' => [ 'routes' => [ $ routeName => [ 'options' => [ 'route' => $ route , ] , ] , ] , ] , ] ; $ this -> configResource -> patch ( $ config , true ) ; }
Update the route for an existing service
 @param DoctrineRestServiceEntity $original
 @param DoctrineRestServiceEntity $update
Update the route for an existing service @param DoctrineRestServiceEntity $original @param DoctrineRestServiceEntity $update