/**
  * Load all basic services needed for Midgard MVC usage. This includes configuration, authorization and the component loader.
  */
 public function load_base_services($dispatcher = 'midgard')
 {
     // Load the context helper and initialize first context
     $this->context = new midgardmvc_core_helpers_context();
     $this->configuration = new midgardmvc_core_services_configuration_yaml();
     $this->configuration->load_component('midgardmvc_core');
     // Load the request dispatcher
     $dispatcher_implementation = "midgardmvc_core_services_dispatcher_{$dispatcher}";
     $this->dispatcher = new $dispatcher_implementation();
     if ($this->configuration->development_mode and !class_exists('MFS\\AppServer\\DaemonicHandler') and !class_exists('MFS_AppServer_DaemonicHandler')) {
         // Load FirePHP logger
         // TODO: separate setting
         include 'FirePHPCore/FirePHP.class.php';
         if (class_exists('FirePHP')) {
             $this->firephp = FirePHP::getInstance(true);
         }
     }
 }