original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Helper for generating all the routes for the configured resources in slim.
  
  @param Slim $slim
  @return void
docstring_tokens: Helper for generating all the routes for the configured resources in slim .