original_string: public function init($environment = 'production'): void
      {
          $this->environment = $environment;
  
          try {
              // initial default helper path
              $this->addHelperPath(__DIR__ . '/Helper/');
  
              // init Config
              $this->initConfig();
  
              // first log message
              Logger::info('app:init');
  
              // init Session, start inside class (if needed)
              Session::getInstance();
  
              // init Messages
              Messages::getInstance();
  
              // init Request
              $this->initRequest();
  
              // init Response
              $this->initResponse();
  
              // init Translator
              $this->initTranslator();
  
              // init Router
              $this->initRouter();
          } catch (\Exception $e) {
              throw new ApplicationException("Application can't be loaded: " . $e->getMessage());
          }
      }
code: public function init($environment = 'production'): void
      {
          $this->environment = $environment;
  
          try {
              // initial default helper path
              $this->addHelperPath(__DIR__ . '/Helper/');
  
              // init Config
              $this->initConfig();
  
              // first log message
              Logger::info('app:init');
  
              // init Session, start inside class (if needed)
              Session::getInstance();
  
              // init Messages
              Messages::getInstance();
  
              // init Request
              $this->initRequest();
  
              // init Response
              $this->initResponse();
  
              // init Translator
              $this->initTranslator();
  
              // init Router
              $this->initRouter();
          } catch (\Exception $e) {
              throw new ApplicationException("Application can't be loaded: " . $e->getMessage());
          }
      }
code_tokens: public function init ( $ environment = 'production' ) : void { $ this -> environment = $ environment ; try { // initial default helper path $ this -> addHelperPath ( __DIR__ . '/Helper/' ) ; // init Config $ this -> initConfig ( ) ; // first log message Logger :: info ( 'app:init' ) ; // init Session, start inside class (if needed) Session :: getInstance ( ) ; // init Messages Messages :: getInstance ( ) ; // init Request $ this -> initRequest ( ) ; // init Response $ this -> initResponse ( ) ; // init Translator $ this -> initTranslator ( ) ; // init Router $ this -> initRouter ( ) ; } catch ( \ Exception $ e ) { throw new ApplicationException ( "Application can't be loaded: " . $ e -> getMessage ( ) ) ; } }
docstring: Initialize system packages
  
  @param  string $environment
  
  @throws ApplicationException
  @return void
docstring_tokens: Initialize system packages