mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Create AppHelper interface and AppLegacy class
This commit is contained in:
parent
1f99e2924d
commit
34845910ec
4 changed files with 673 additions and 203 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue