OnBoarding/Configuration.php
protected function generateSfBaseUrl(Router $router, $controller, $fakeParameters = [])
    {
        $url = $router->getGenerator()->generate($controller, $fakeParameters);
        $url = substr($url, strlen(basename(__PS_BASE_URI__)) + 1);
        $url = str_replace('/' . basename(_PS_ADMIN_DIR_) . '/', '', $url);

        $url = str_replace(array_values($fakeParameters), '.+', $url);

        return $url;
    }
protected function generateSfBaseUrl(Router $router, $controller, $fakeParameters = [])
    {
        $url = $router->getGenerator()->generate($controller, $fakeParameters);
        $url = substr($url, strlen(basename(__PS_BASE_URI__)) + 1);
        $url = str_replace('/' . basename(_PS_ADMIN_DIR_) . '/', '', $url);

        $url = str_replace(array_values($fakeParameters), '.+', $url);

        return $url;
    }
protected function generateSfBaseUrl ( Router $ router , $ controller , $ fakeParameters = [ ] ) { $ url = $ router -> getGenerator ( ) -> generate ( $ controller , $ fakeParameters ) ; $ url = substr ( $ url , strlen ( basename ( __PS_BASE_URI__ ) ) + 1 ) ; $ url = str_replace ( '/' . basename ( _PS_ADMIN_DIR_ ) . '/' , '' , $ url ) ; $ url = str_replace ( array_values ( $ fakeParameters ) , '.+' , $ url ) ; return $ url ; }
generate url pattern to recognize the route as the current step url
here we replace the route specific parameters with wildcard to allow regexp matching

@param \PrestaShopBundle\Service\Routing\Router $router
@param                                          $controller
@param array                                    $fakeParameters

@return mixed|string
generate url pattern to recognize the route as the current step url here we replace the route specific parameters with wildcard to allow regexp matching