Esempio n. 1
0
 /**
  * System initializer
  * @access private
  */
 private static function initialize()
 {
     // Setting framework default encoding
     header('Content-type: text/html; charset=UTF-8');
     self::verifyPhpVersion();
     self::switchEnvironment();
     // Setting the initialized status to true, so we cannot have more than one requests at the same time
     self::$initialized = true;
     Log::debug("System initialized !");
 }
 /**
  * Inicializador do sistema:
  * @access private
  */
 private static function initialize()
 {
     // Autoloader do Framework:
     self::registerAutoloader();
     // Carregando o logger:
     $log = Log::getInstance();
     // Setando encoding interno do Framework:
     header('Content-type: text/html; charset=UTF-8');
     self::verifyPhpVersion();
     $log->debugMessage('Running Melyssa Framework in PHP Version ' . PHP_VERSION);
     self::switchEnvironment();
     $log->debugMessage('The application environment is set to: ' . ENVIRONMENT);
     // Setando a variável de inicialização pra garantir que não teremos mais que um dispatch na mesma requisição:
     self::$initialized = true;
     $log->debugMessage("System initialized");
 }