From: nupplaPhil Date: Sun, 15 Dec 2019 22:28:00 +0000 (+0100) Subject: Replace BaseObject class with DI::* calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34ba7f441dcaf28e2ed7ac2cedf998bdc8b39be2;p=friendica-addons.git Replace BaseObject class with DI::* calls --- diff --git a/remote_permissions/remote_permissions.php b/remote_permissions/remote_permissions.php index ad6d7b25..7d42c560 100644 --- a/remote_permissions/remote_permissions.php +++ b/remote_permissions/remote_permissions.php @@ -7,14 +7,13 @@ * Status: Unsupported */ -use Friendica\BaseObject; use Friendica\Core\Config; use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Database\DBA; -use Friendica\Util\ACLFormatter; +use Friendica\DI; use Friendica\Util\Strings; function remote_permissions_install() { @@ -125,8 +124,7 @@ function remote_permissions_content($a, $item_copy) { $item = $r[0]; - /** @var ACLFormatter $aclFormatter */ - $aclFormatter = BaseObject::getClass(ACLFormatter::class); + $aclFormatter = DI::aclFormatter(); $allowed_users = $aclFormatter->expand($item['allow_cid']); $allowed_groups = $aclFormatter->expand($item['allow_gid']);