mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +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
|
@ -6,6 +6,7 @@ use Friendica\BaseModule;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Protocol\Email;
|
||||
|
@ -24,7 +25,7 @@ class Invite extends BaseModule
|
|||
|
||||
self::checkFormSecurityTokenRedirectOnError('/', 'send_invite');
|
||||
|
||||
$app = self::getApp();
|
||||
$app = DI::app();
|
||||
$config = $app->getConfig();
|
||||
|
||||
$max_invites = intval($config->get('system', 'max_invites'));
|
||||
|
@ -110,7 +111,7 @@ class Invite extends BaseModule
|
|||
throw new HTTPException\ForbiddenException(L10n::t('Permission denied.'));
|
||||
}
|
||||
|
||||
$app = self::getApp();
|
||||
$app = DI::app();
|
||||
$config = $app->getConfig();
|
||||
|
||||
$inviteOnly = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue