mirror of
https://github.com/friendica/friendica
synced 2025-03-13 11:48:26 +00:00
Hard deprecate DI::workerLogger(), mark DI::loggerManager() as internal
This commit is contained in:
parent
c363b45e0d
commit
c206e60ad4
1 changed files with 7 additions and 0 deletions
|
@ -332,9 +332,16 @@ abstract class DI
|
|||
*/
|
||||
public static function workerLogger()
|
||||
{
|
||||
trigger_error('`' . __METHOD__ . '()` is deprecated since 2025.02 and will be removed after 5 months, use `DI::logger()` instead.', E_USER_DEPRECATED);
|
||||
|
||||
return self::$dice->create(Core\Logger\Type\WorkerLogger::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal Only for use in Friendica\Core\Worker class
|
||||
*
|
||||
* @see Friendica\Core\Worker::execFunction()
|
||||
*/
|
||||
public static function loggerManager(): LoggerManager
|
||||
{
|
||||
return self::$dice->create(LoggerManager::class);
|
||||
|
|
Loading…
Add table
Reference in a new issue