Create AppHelper interface and AppLegacy class

This commit is contained in:
Art4 2024-11-17 20:06:34 +00:00
parent 1f99e2924d
commit 34845910ec
4 changed files with 673 additions and 203 deletions

View file

@ -71,6 +71,8 @@ abstract class DI
//
/**
* @deprecated 2024.12 use DI::appHelper() instead
*
* @return App
*/
public static function app()
@ -78,6 +80,11 @@ abstract class DI
return self::$dice->create(App::class);
}
public static function appHelper(): AppHelper
{
return self::$dice->create(AppHelper::class);
}
/**
* @return Database\Database
*/