mirror of
https://github.com/friendica/friendica
synced 2025-05-11 17:44:10 +02:00
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes - Replacing BaseObject::getApp() with this class
This commit is contained in:
parent
a9220aa83b
commit
1de3f186d7
132 changed files with 377 additions and 270 deletions
|
@ -5,6 +5,7 @@ namespace Friendica\Util;
|
|||
use Friendica\BaseObject;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\DI;
|
||||
|
||||
/**
|
||||
* @brief Proxy utilities class
|
||||
|
@ -63,7 +64,7 @@ class Proxy
|
|||
public static function proxifyUrl($url, $writemode = false, $size = '')
|
||||
{
|
||||
// Get application instance
|
||||
$a = BaseObject::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
// Trim URL first
|
||||
$url = trim($url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue