]> git.mxchange.org Git - friendica-addons.git/commitdiff
Replace BaseObject class with DI::* calls
authornupplaPhil <admin@philipp.info>
Sun, 15 Dec 2019 22:28:00 +0000 (23:28 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 27 Dec 2019 20:55:15 +0000 (21:55 +0100)
remote_permissions/remote_permissions.php

index ad6d7b251ee81173c01eb656c91f87bba28419c5..7d42c5606295c0078f81f3f3bc3fdda3a8134e0c 100644 (file)
@@ -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']);