src/Admin/Model/DoctrineRpcServiceModel.php
/**
     * Create the route configuration
     *
     * @param string $route
     * @param string $serviceName
     * @param string $controllerService
     * @return string The newly created route name
     */
Create the route configuration
@param string $route
@param string $serviceName
@param string $controllerService
@return string The newly created route name
Create the route configuration @param string $route @param string $serviceName @param string $controllerService @return string The newly created route name
public function createRoute($route, $serviceName, $controllerService = null)
    {
        if (null === $controllerService) {
            $controllerService = sprintf('%s\\Rpc\\%s\\Controller', $this->module, $serviceName);
        }
        $routeName = sprintf('%s.rpc.%s', $this->normalize($this->module), $this->normalize($serviceName));
        $action    = 'index';
        $config = [
            'router' => [
                'routes' => [
                    $routeName => [
                        'type' => 'Segment',
                        'options' => [
                            'route' => $route,
                            'defaults' => [
                                'controller' => $controllerService,
                                'action'     => $action,
                            ],
                        ],
                    ],
                ],
            ],
            'zf-versioning' => [
                'uri' => [
                    $routeName,
                ],
            ],
        ];
        $this->configResource->patch($config, true);
        return $routeName;
    }
public function createRoute ( $ route , $ serviceName , $ controllerService = null ) { if ( null === $ controllerService ) { $ controllerService = sprintf ( '%s\\Rpc\\%s\\Controller' , $ this -> module , $ serviceName ) ; } $ routeName = sprintf ( '%s.rpc.%s' , $ this -> normalize ( $ this -> module ) , $ this -> normalize ( $ serviceName ) ) ; $ action = 'index' ; $ config = [ 'router' => [ 'routes' => [ $ routeName => [ 'type' => 'Segment' , 'options' => [ 'route' => $ route , 'defaults' => [ 'controller' => $ controllerService , 'action' => $ action , ] , ] , ] , ] , ] , 'zf-versioning' => [ 'uri' => [ $ routeName , ] , ] , ] ; $ this -> configResource -> patch ( $ config , true ) ; return $ routeName ; }
Create the route configuration
 @param string $route
 @param string $serviceName
 @param string $controllerService
 @return string The newly created route name
Create the route configuration @param string $route @param string $serviceName @param string $controllerService @return string The newly created route name