src/Wizard/WizardTrait.php
public static function routesRegister(Router $router, $prefixPart, $routePrefix)
    {
        $class = get_called_class();

        // Get - Create flow
        $part = sprintf('%s', $prefixPart);
        $uses = sprintf('\%s@createFlow', $class);
        $as = sprintf('%s.create', $routePrefix);
        $router->get($part, ['uses' => $uses, 'as' => $as]);

        // Get - Step
        $part = sprintf('%s/{flow}/{step}', $prefixPart);
        $uses = sprintf('\%s@getSteps', $class);
        $as = sprintf('%s.get', $routePrefix);
        $router->get($part, ['uses' => $uses, 'as' => $as]);

        // Post - Step
        $part = sprintf('%s/{flow}', $prefixPart);
        $uses = sprintf('\%s@setSteps', $class);
        $as = sprintf('%s.post', $routePrefix);
        $router->post($part, ['uses' => $uses, 'as' => $as]);
    }
public static function routesRegister(Router $router, $prefixPart, $routePrefix)
    {
        $class = get_called_class();

        // Get - Create flow
        $part = sprintf('%s', $prefixPart);
        $uses = sprintf('\%s@createFlow', $class);
        $as = sprintf('%s.create', $routePrefix);
        $router->get($part, ['uses' => $uses, 'as' => $as]);

        // Get - Step
        $part = sprintf('%s/{flow}/{step}', $prefixPart);
        $uses = sprintf('\%s@getSteps', $class);
        $as = sprintf('%s.get', $routePrefix);
        $router->get($part, ['uses' => $uses, 'as' => $as]);

        // Post - Step
        $part = sprintf('%s/{flow}', $prefixPart);
        $uses = sprintf('\%s@setSteps', $class);
        $as = sprintf('%s.post', $routePrefix);
        $router->post($part, ['uses' => $uses, 'as' => $as]);
    }
public static function routesRegister ( Router $ router , $ prefixPart , $ routePrefix ) { $ class = get_called_class ( ) ; // Get - Create flow $ part = sprintf ( '%s' , $ prefixPart ) ; $ uses = sprintf ( '\%s@createFlow' , $ class ) ; $ as = sprintf ( '%s.create' , $ routePrefix ) ; $ router -> get ( $ part , [ 'uses' => $ uses , 'as' => $ as ] ) ; // Get - Step $ part = sprintf ( '%s/{flow}/{step}' , $ prefixPart ) ; $ uses = sprintf ( '\%s@getSteps' , $ class ) ; $ as = sprintf ( '%s.get' , $ routePrefix ) ; $ router -> get ( $ part , [ 'uses' => $ uses , 'as' => $ as ] ) ; // Post - Step $ part = sprintf ( '%s/{flow}' , $ prefixPart ) ; $ uses = sprintf ( '\%s@setSteps' , $ class ) ; $ as = sprintf ( '%s.post' , $ routePrefix ) ; $ router -> post ( $ part , [ 'uses' => $ uses , 'as' => $ as ] ) ; }
Register routes of flow.

@param Router $router
@param $prefixPart
@param $routePrefix
Register routes of flow .