Пример #1
0
 /**
  * Create the container which holds FuzeWorks.
  *
  * Due to the static nature of FuzeWorks, this is not yet possible. 
  * When issue #101 is completed, this should be resolved. 
  *
  * @return void
  */
 public function createContainer()
 {
     // First set all the directories
     Core::$appDir = $this->parameters['appDir'];
     Core::$wwwDir = $this->parameters['wwwDir'];
     Core::$tempDir = $this->parameters['tempDir'];
     Core::$logDir = $this->parameters['logDir'];
     // Then set debug mode
     if ($this->parameters['debugMode']) {
         define('ENVIRONMENT', 'DEVELOPMENT');
     } else {
         define('ENVIRONMENT', 'PRODUCTION');
     }
     // And enable Tracy Debugger
     if (class_exists('Tracy\\Debugger', true)) {
         Debugger::enable(!$this->parameters['debugMode'], realpath($this->parameters['logDir']));
         Logger::$useTracy = true;
     }
     // Then load the framework
     Core::init();
 }