original_string: public function initialize ($routepath)
      {
          // Set path
          $this->routepath = $routepath;
  
          // Add templates
          Template::addPath (__DIR__ . '/templates/', 'CatLab/Accounts/');
  
          // Add locales
          Text::getInstance ()->addPath ('catlab.accounts', __DIR__ . '/locales/');
  
          // Set session variable
          Application::getInstance ()->on ('dispatch:before', array ($this, 'setRequestUser'));
  
          // Set the global user mapper, unless one is set already
          Application::getInstance ()->on ('dispatch:first', array ($this, 'setUserMapper'));
  
          // Add helper methods
          $helper = new LoginForm ($this);
  
          Template::addHelper ('CatLab.Accounts.LoginForm', $helper);
      }
code: public function initialize ($routepath)
      {
          // Set path
          $this->routepath = $routepath;
  
          // Add templates
          Template::addPath (__DIR__ . '/templates/', 'CatLab/Accounts/');
  
          // Add locales
          Text::getInstance ()->addPath ('catlab.accounts', __DIR__ . '/locales/');
  
          // Set session variable
          Application::getInstance ()->on ('dispatch:before', array ($this, 'setRequestUser'));
  
          // Set the global user mapper, unless one is set already
          Application::getInstance ()->on ('dispatch:first', array ($this, 'setUserMapper'));
  
          // Add helper methods
          $helper = new LoginForm ($this);
  
          Template::addHelper ('CatLab.Accounts.LoginForm', $helper);
      }
code_tokens: public function initialize ( $ routepath ) { // Set path $ this -> routepath = $ routepath ; // Add templates Template :: addPath ( __DIR__ . '/templates/' , 'CatLab/Accounts/' ) ; // Add locales Text :: getInstance ( ) -> addPath ( 'catlab.accounts' , __DIR__ . '/locales/' ) ; // Set session variable Application :: getInstance ( ) -> on ( 'dispatch:before' , array ( $ this , 'setRequestUser' ) ) ; // Set the global user mapper, unless one is set already Application :: getInstance ( ) -> on ( 'dispatch:first' , array ( $ this , 'setUserMapper' ) ) ; // Add helper methods $ helper = new LoginForm ( $ this ) ; Template :: addHelper ( 'CatLab.Accounts.LoginForm' , $ helper ) ; }
docstring: Set template paths, config vars, etc
  @param string $routepath The prefix that should be added to all route paths.
  @return void
docstring_tokens: Set template paths config vars etc