public function generateSlimRoutes(Slim $slim)
    {
        // if we are not on a resources's route, then dont generate any routes
        if (!$this->config->getCurrentResourceConfiguration()) {
            return;
        }

        $output = $this->newSlimOutput($slim->request, $slim->response);

        $generator = new SlimRouteGenerator($slim, $output, $this->config);

        $generator->generateRoutes();
    }
public function generateSlimRoutes(Slim $slim)
    {
        // if we are not on a resources's route, then dont generate any routes
        if (!$this->config->getCurrentResourceConfiguration()) {
            return;
        }

        $output = $this->newSlimOutput($slim->request, $slim->response);

        $generator = new SlimRouteGenerator($slim, $output, $this->config);

        $generator->generateRoutes();
    }
public function generateSlimRoutes ( Slim $ slim ) { // if we are not on a resources's route, then dont generate any routes if ( ! $ this -> config -> getCurrentResourceConfiguration ( ) ) { return ; } $ output = $ this -> newSlimOutput ( $ slim -> request , $ slim -> response ) ; $ generator = new SlimRouteGenerator ( $ slim , $ output , $ this -> config ) ; $ generator -> generateRoutes ( ) ; }
Helper for generating all the routes for the configured resources in slim.

@param Slim $slim
@return void
Helper for generating all the routes for the configured resources in slim .