mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
Replace BaseObject class with DI::* calls
This commit is contained in:
parent
1de3f186d7
commit
388b963714
98 changed files with 321 additions and 440 deletions
|
@ -4,8 +4,6 @@
|
|||
*/
|
||||
namespace Friendica\Core;
|
||||
|
||||
use Friendica\App\BaseURL;
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Util\XML;
|
||||
|
@ -20,18 +18,17 @@ use Friendica\Util\XML;
|
|||
/**
|
||||
* @brief System methods
|
||||
*/
|
||||
class System extends BaseObject
|
||||
class System
|
||||
{
|
||||
/**
|
||||
* @brief Retrieves the Friendica instance base URL
|
||||
*
|
||||
* @param bool $ssl Whether to append http or https under BaseURL::SSL_POLICY_SELFSIGN
|
||||
* @return string Friendica server base URL
|
||||
* @throws InternalServerErrorException
|
||||
*/
|
||||
public static function baseUrl($ssl = false)
|
||||
{
|
||||
return self::getClass(BaseURL::class)->get($ssl);
|
||||
return DI::baseUrl()->get($ssl);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue