mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-09 09:04:31 +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\Module\Admin\Addons;
|
|||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\BaseAdminModule;
|
||||
|
||||
class Index extends BaseAdminModule
|
||||
|
@ -13,7 +14,7 @@ class Index extends BaseAdminModule
|
|||
{
|
||||
parent::content($parameters);
|
||||
|
||||
$a = self::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
// reload active themes
|
||||
if (!empty($_GET['action'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue