mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Move system messages from boot to own class
This commit is contained in:
parent
f9777ce0dc
commit
1b2182c43c
5 changed files with 107 additions and 38 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica;
|
||||
|
||||
use Dice\Dice;
|
||||
use Friendica\Navigation\SystemMessages;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
|
@ -234,6 +235,14 @@ abstract class DI
|
|||
return self::$dice->create(Core\System::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Friendica\Navigation\SystemMessages
|
||||
*/
|
||||
public static function sysmsg()
|
||||
{
|
||||
return self::$dice->create(SystemMessages::class);
|
||||
}
|
||||
|
||||
//
|
||||
// "LoggerInterface" instances
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue