original_string: public function addSlimPlugins(RouterInterface $router, $uri)
      {
          $smartyPlugins = new SmartyPlugins($router, $uri);
          $this->smarty->registerPlugin('function', 'path_for', [$smartyPlugins, 'pathFor']);
          $this->smarty->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
      }
code: public function addSlimPlugins(RouterInterface $router, $uri)
      {
          $smartyPlugins = new SmartyPlugins($router, $uri);
          $this->smarty->registerPlugin('function', 'path_for', [$smartyPlugins, 'pathFor']);
          $this->smarty->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
      }
code_tokens: public function addSlimPlugins ( RouterInterface $ router , $ uri ) { $ smartyPlugins = new SmartyPlugins ( $ router , $ uri ) ; $ this -> smarty -> registerPlugin ( 'function' , 'path_for' , [ $ smartyPlugins , 'pathFor' ] ) ; $ this -> smarty -> registerPlugin ( 'function' , 'base_url' , [ $ smartyPlugins , 'baseUrl' ] ) ; }
docstring: Method to add the Slim plugins to Smarty
  
  @param RouterInterface $router
  @param string|\Slim\Http\Uri $uri
  
  @deprecated Deprecated since version 1.1.0. Use registerPlugin instead. See README for more info.
docstring_tokens: Method to add the Slim plugins to Smarty