Esempio n. 1
0
 /**
  * Start booting and handler all user request
  * @return Dispatcher
  */
 public function boot()
 {
     Url::instance($this['router']);
     //Set up configurations for your awesome application
     Config::set('config.items', $this['config']);
     //Set URL base path.
     Url::setBase(Config::get('global.config', 'base_path') == '' ? $this['router']->getBaseUrl() : Config::get('global.config', 'base_path'));
     //initialize framework
     $this['boot']->initialize();
     $this['boot']->terminate();
     /**-------------------------------------------------------
      * Booting completed. Lets handle user request!!
      * Lets Go !!
      * -------------------------------------------------------
      */
     return new Dispatcher($this['router']);
 }