public function __construct($app = null)
{
if (defined('INI_SYSTEM_CHECK_DISABLED') == false) {
define('INI_SYSTEM_CHECK_DISABLED', ini_get('disable_functions'));
}
if (!is_object($this->app)) {
if (is_object($app)) {
$this->app = $app;
} else {
$this->app = mw();
}
}
}