mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00: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
|
@ -7,6 +7,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPException\ForbiddenException;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
@ -50,7 +51,7 @@ abstract class BaseAdminModule extends BaseModule
|
|||
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
if (!is_site_admin()) {
|
||||
notice(L10n::t('Please login to continue.'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue