Exemplo n.º 1
0
 /**
  * Class constructor.
  *
  * @since   1.0
  */
 public function __construct()
 {
     // Run the parent constructor
     parent::__construct();
     // Load the configuration object.
     $this->loadConfiguration();
     // Register the application to Factory
     // @todo Decouple from Factory
     Factory::$application = $this;
     Factory::$config = $this->config;
     $this->theme = $this->config->get('theme.default');
     define('BASE_URL', $this->get('uri.base.full'));
     define('DEFAULT_THEME', BASE_URL . 'themes/' . $this->theme);
 }