Skip to content

Commit

Permalink
chore: Updated Dependencies + Framework Version
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 24, 2024
1 parent 56f0bdc commit 9f5dd93
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"ext-mbstring": "*",
"ext-fileinfo": "*",
"ext-openssl": "*",
"webfiori/http": "v3.5.1",
"webfiori/http": "v3.6.0",
"webfiori/file": "v1.3.7",
"webfiori/jsonx": "v3.3.1",
"webfiori/ui": "v2.6.4",
"webfiori/collections": "v1.1.5",
"webfiori/database": "v0.8.12",
"webfiori/cli": "v1.3.0",
"webfiori/mailer": "v1.3.0",
"webfiori/mailer": "v1.3.1",
"webfiori/err": "v1.1.0",
"webfiori/cache": "v1.0.0"
},
Expand Down
34 changes: 22 additions & 12 deletions webfiori/framework/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,7 @@ class App {
* @since 1.0
*/
private function __construct() {

$this->checkAppDir();
/**
* Change encoding of mb_ functions to UTF-8
*/
if (function_exists('mb_internal_encoding')) {
$encoding = 'UTF-8';
mb_internal_encoding($encoding);
mb_http_output($encoding);
mb_regex_encoding($encoding);
}
$this->setHandlers();
Controller::get()->updateEnv();
/**
Expand Down Expand Up @@ -318,9 +308,10 @@ public static function handle() {
}
}
/**
* Initiate main environment variables which are used by the framework.
* Initiate main components of the application.
*
* This method is intended to be called in the index file of the project.
* It should be first thing to be called.
*
* @param string $appFolder The name of the folder at which the application
* is created at.
Expand All @@ -332,6 +323,15 @@ public static function handle() {
* Usually, its the value of the constant __DIR__.
*/
public static function initiate(string $appFolder = 'app', string $publicFolder = 'public', string $indexDir = __DIR__) {
/**
* Change encoding of mb_ functions to UTF-8
*/
if (function_exists('mb_internal_encoding')) {
$encoding = 'UTF-8';
mb_internal_encoding($encoding);
mb_http_output($encoding);
mb_regex_encoding($encoding);
}
if (!defined('DS')) {
/**
* Directory separator.
Expand Down Expand Up @@ -619,13 +619,23 @@ private static function initAutoLoader() {
}
self::call(APP_DIR.'\ini\InitAutoLoad::init');
}
/**
* Initialize global constants which has information about framework version.
*
* The constants which are defined by this method include the following:
* <ul>
* <li><b>WF_VERSION</b>: A string such as '3.0.0'.</li>
* <li><b>WF_VERSION_TYPE</b>: Type of the release such as 'RC', 'Alpha' or 'Stable'.</li>
* <li><b>WF_RELEASE_DATE</b>: The date at which the specified version was created at.</li>
* </ul>
*/
public static function initFrameworkVersionInfo() {
/**
* A constant that represents version number of the framework.
*
* @since 2.1
*/
define('WF_VERSION', '3.0.0-Beta.21');
define('WF_VERSION', '3.0.0-Beta.22');
/**
* A constant that tells the type of framework version.
*
Expand Down

0 comments on commit 9f5dd93

Please sign in to comment.