Replace BaseObject class with DI::* calls

This commit is contained in:
nupplaPhil 2019-12-15 23:28:00 +01:00
parent 5d4d175bf9
commit 34ba7f441d
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90

View File

@ -7,14 +7,13 @@
* Status: Unsupported * Status: Unsupported
*/ */
use Friendica\BaseObject;
use Friendica\Core\Config; use Friendica\Core\Config;
use Friendica\Core\Hook; use Friendica\Core\Hook;
use Friendica\Core\L10n; use Friendica\Core\L10n;
use Friendica\Core\PConfig; use Friendica\Core\PConfig;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\Util\ACLFormatter; use Friendica\DI;
use Friendica\Util\Strings; use Friendica\Util\Strings;
function remote_permissions_install() { function remote_permissions_install() {
@ -125,8 +124,7 @@ function remote_permissions_content($a, $item_copy) {
$item = $r[0]; $item = $r[0];
/** @var ACLFormatter $aclFormatter */ $aclFormatter = DI::aclFormatter();
$aclFormatter = BaseObject::getClass(ACLFormatter::class);
$allowed_users = $aclFormatter->expand($item['allow_cid']); $allowed_users = $aclFormatter->expand($item['allow_cid']);
$allowed_groups = $aclFormatter->expand($item['allow_gid']); $allowed_groups = $aclFormatter->expand($item['allow_gid']);