Set BaseObject::setApp in App

This commit is contained in:
Hypolite Petovan
2018-06-25 20:44:35 -04:00
parent e952d6677b
commit decfc553f7
7 changed files with 7 additions and 21 deletions

View File

@@ -508,14 +508,7 @@ if (!defined('CURLE_OPERATION_TIMEDOUT')) {
*/
function get_app()
{
global $a;
if (empty($a)) {
$a = new App(dirname(__DIR__));
BaseObject::setApp($a);
}
return $a;
return BaseObject::getApp();
}
/**