[CORE][DB] Rename App\Core\DB\DB to App\Core\DB
This commit is contained in:
parent
ca5520edbf
commit
abe35428da
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Attachment;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Modules\Component;
|
||||
use App\Core\Router\RouteLoader;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Attachment\Controller;
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use function App\Core\I18n\_m;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Attachment\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Attachment\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Attachment\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Attachment\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Attachment\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Attachment\tests\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Util\GNUsocialTestCase;
|
||||
use Component\Attachment\Entity\Attachment;
|
||||
use Component\Attachment\Entity\AttachmentToNote;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Attachment\tests\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use App\Core\Router\Router;
|
||||
@ -107,7 +107,7 @@ class AttachmentTest extends GNUsocialTestCase
|
||||
static::assertSame('Untitled attachment', $attachment->getBestTitle());
|
||||
$attachment->setFilename($filename);
|
||||
|
||||
$actor = DB::findOneBy('actor', ['nickname' => 'taken_user']);
|
||||
$actor = DB::findOneBy('actor', ['nickname' => 'taken_user']);
|
||||
DB::persist($note = Note::create(['actor_id' => $actor->getId(), 'content' => 'attachment: some content', 'content_type' => 'text/plain', 'is_local' => true]));
|
||||
Conversation::assignLocalConversation($note, null);
|
||||
DB::persist(AttachmentToNote::create(['attachment_id' => $attachment->getId(), 'note_id' => $note->getId(), 'title' => 'A title']));
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Attachment\tests\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Util\Exception\NotStoredLocallyException;
|
||||
use App\Util\GNUsocialTestCase;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Avatar;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use App\Core\Modules\Component;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Avatar\Controller;
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Form;
|
||||
use App\Core\GSFile;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Avatar\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Event;
|
||||
use App\Core\Router\Router;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Circle;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Component;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Circle\Controller;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Router\Router;
|
||||
use App\Entity\Actor;
|
||||
use App\Entity\LocalUser;
|
||||
|
@ -6,7 +6,7 @@ namespace Component\Circle\Controller;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Entity as E;
|
||||
use App\Util\Common;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Circle\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Router\Router;
|
||||
use DateTimeInterface;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Circle\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Router\Router;
|
||||
use App\Entity\Actor;
|
||||
|
@ -4,7 +4,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Collection;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Modules\Component;
|
||||
use App\Entity\Actor;
|
||||
|
@ -31,7 +31,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Collection\Util\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Entity\LocalUser;
|
||||
|
@ -31,7 +31,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Collection\Util;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
@ -137,7 +137,7 @@ trait MetaCollectionTrait
|
||||
if ($add_form->isSubmitted() && $add_form->isValid()) {
|
||||
$selected = $add_form->getData()['collections'];
|
||||
$removed = array_filter($already_selected, fn ($x) => !\in_array($x, $selected));
|
||||
$added = array_filter($selected, fn ($x) => !\in_array($x, $already_selected));
|
||||
$added = array_filter($selected, fn ($x) => !\in_array($x, $already_selected));
|
||||
if (\count($removed) > 0) {
|
||||
$this->removeItem($user, $vars, $removed, $collections);
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Conversation\Controller;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
|
@ -28,7 +28,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Conversation;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Component;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Conversation\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Router\Router;
|
||||
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Conversation\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Activity;
|
||||
use App\Entity\Actor;
|
||||
|
@ -34,7 +34,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\FreeNetwork\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Util\Common;
|
||||
use Component\Collection\Util\Controller\FeedController;
|
||||
|
@ -32,7 +32,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\FreeNetwork\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Actor;
|
||||
use Component\FreeNetwork\Util\Discovery;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\FreeNetwork;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use App\Core\HTTPClient;
|
||||
|
@ -26,7 +26,7 @@ namespace Component\Group\Controller;
|
||||
use App\Core\ActorLocalRoles;
|
||||
use App\Core\Cache;
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Group\Controller;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Router\Router;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Group\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Actor;
|
||||
use App\Util\Exception\NicknameEmptyException;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Group\tests\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Entity\Actor;
|
||||
use App\Util\GNUsocialTestCase;
|
||||
use Component\Group\Entity\LocalGroup;
|
||||
|
@ -25,7 +25,7 @@ namespace Component\Language\Controller;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Util\Common;
|
||||
@ -70,7 +70,7 @@ class Language extends Controller
|
||||
['actor_id' => $user->getId()],
|
||||
);
|
||||
|
||||
$new_langs = array_udiff($selected_langs, $existing_langs, fn ($l, $r) => $l->getId() <=> $r->getId());
|
||||
$new_langs = array_udiff($selected_langs, $existing_langs, fn ($l, $r) => $l->getId() <=> $r->getId());
|
||||
$removing_langs = array_udiff($existing_langs, $selected_langs, fn ($l, $r) => $l->getId() <=> $r->getId());
|
||||
foreach ($new_langs as $l) {
|
||||
DB::persist(ActorLanguage::create(['actor_id' => $user->getId(), 'language_id' => $l->getId(), 'ordering' => 0]));
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Language\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Actor;
|
||||
use App\Entity\LocalUser;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Language\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Entity\Actor;
|
||||
|
@ -25,7 +25,7 @@ namespace Component\LeftPanel\Controller;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Router\Router;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Component\LeftPanel;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Component;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Link\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Link\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Event;
|
||||
use DateTimeInterface;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Link;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Modules\Component;
|
||||
use App\Entity\Actor;
|
||||
|
@ -35,7 +35,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Notification\Controller;
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Util\Common;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Notification\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Activity;
|
||||
use App\Entity\Actor;
|
||||
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Notification;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
|
@ -38,7 +38,7 @@ namespace Component\Person\Controller;
|
||||
// {{{ Imports
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Person\tests\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Router\Router;
|
||||
use App\Entity\LocalUser;
|
||||
use App\Util\GNUsocialTestCase;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Posting;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use function App\Core\I18n\_m;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Component\Subscription\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Subscription;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Component;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Tag\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Router\Router;
|
||||
use App\Entity\Actor;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Tag\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use Component\Tag\Tag;
|
||||
use DateTimeInterface;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Component\Tag;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Component;
|
||||
|
@ -34,7 +34,7 @@ namespace Plugin\ActivityPub;
|
||||
|
||||
use ActivityPhp\Type;
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\HTTPClient;
|
||||
use function App\Core\I18n\_m;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\ActivityPub\Controller;
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
use App\Core\Queue\Queue;
|
||||
|
@ -32,7 +32,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\ActivityPub\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Activity;
|
||||
use DateTimeInterface;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\ActivityPub\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
|
@ -32,7 +32,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\ActivityPub\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
|
@ -32,7 +32,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\ActivityPub\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Core\Log;
|
||||
use App\Entity\Actor;
|
||||
|
@ -4,7 +4,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\ActivityPub\Test\Fixtures;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use Doctrine\Bundle\FixturesBundle\Fixture;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
use Plugin\ActivityPub\Util\Model\Activity;
|
||||
|
@ -32,7 +32,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\ActivityPub\Util;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\HTTPClient;
|
||||
use App\Core\Log;
|
||||
use App\Entity\Actor;
|
||||
|
@ -34,7 +34,7 @@ namespace Plugin\ActivityPub\Util\Model;
|
||||
|
||||
use ActivityPhp\Type;
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Log;
|
||||
use App\Core\Router\Router;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\ActivityPub\Util\Model;
|
||||
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Entity\Activity as GSActivity;
|
||||
use App\Util\Exception\NotImplementedException;
|
||||
use DateTime;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\ActivityPub\Util\Model;
|
||||
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Entity\Activity as GSActivity;
|
||||
use App\Util\Exception\ClientException;
|
||||
use Component\Subscription\Subscription;
|
||||
|
@ -34,7 +34,7 @@ namespace Plugin\ActivityPub\Util\Model;
|
||||
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\ActorLocalRoles;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use App\Core\HTTPClient;
|
||||
|
@ -35,7 +35,7 @@ namespace Plugin\ActivityPub\Util\Model;
|
||||
use ActivityPhp\Type;
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use App\Core\HTTPClient;
|
||||
|
@ -31,7 +31,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\AttachmentCollections;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Plugin;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\AttachmentCollections\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Router\Router;
|
||||
use Component\Collection\Util\Controller\MetaCollectionController;
|
||||
use Plugin\AttachmentCollections\Entity\AttachmentCollection;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\AttachmentShowRelated;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Modules\Plugin;
|
||||
use App\Util\Common;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Bundles;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Modules\Plugin;
|
||||
use App\Entity\Actor;
|
||||
use Component\Collection\Util\MetaCollectionTrait;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Bundles\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Router\Router;
|
||||
use Component\Collection\Util\Controller\MetaCollectionController;
|
||||
use Plugin\Bundles\Entity\BundleCollection;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Cover\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use App\Core\GSFile;
|
||||
use function App\Core\I18n\_m;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Cover;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Modules\Plugin;
|
||||
use App\Core\Router\RouteLoader;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Cover\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Util\Common;
|
||||
use Component\Attachment\Entity\Attachment;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\DeleteNote\Controller;
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
|
@ -23,7 +23,7 @@ namespace Plugin\DeleteNote;
|
||||
|
||||
use ActivityPhp\Type\AbstractObject;
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\NoteHandlerPlugin;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Directory\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Entity\Actor;
|
||||
use App\Util\Common;
|
||||
@ -110,7 +110,7 @@ class Directory extends CircleController
|
||||
// -------- *** --------
|
||||
|
||||
// -------- Start setting up the queries --------
|
||||
$actor_query_fn = fn (int $actor_type) => DB::findBy(Actor::class, ['type' => $actor_type], order_by: $order_by, limit: $limit, offset: $offset);
|
||||
$actor_query_fn = fn (int $actor_type) => DB::findBy(Actor::class, ['type' => $actor_type], order_by: $order_by, limit: $limit, offset: $offset);
|
||||
$minmax_query_fn = $general_query_fn_fn(func: $order_by_op === 'ASC' ? 'MAX' : 'MIN', order: $order_by_op);
|
||||
$count_query_fn = $general_query_fn_fn(func: 'COUNT', order: $order_by_op);
|
||||
// -------- *** --------
|
||||
|
@ -38,7 +38,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\Embed;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\GSFile;
|
||||
use App\Core\HTTPClient;
|
||||
|
@ -34,7 +34,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Embed\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use Component\Attachment\Entity\Attachment;
|
||||
use DateTimeInterface;
|
||||
|
@ -23,7 +23,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\Favourite\Controller;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Form;
|
||||
use function App\Core\I18n\_m;
|
||||
|
@ -22,7 +22,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\Favourite\Entity;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Entity\Actor;
|
||||
use App\Entity\LocalUser;
|
||||
|
@ -31,7 +31,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\Favourite;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\NoteHandlerPlugin;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\FileQuota;
|
||||
|
||||
use App\Core\Cache;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Core\Event;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Plugin;
|
||||
|
@ -34,7 +34,7 @@ declare(strict_types = 1);
|
||||
namespace Plugin\OAuth2\Controller;
|
||||
|
||||
use App\Core\Controller;
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Log;
|
||||
use App\Util\Exception\ClientException;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\OAuth2\Repository;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
|
||||
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||||
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\OAuth2\Repository;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use League\OAuth2\Server\Entities\AuthCodeEntityInterface;
|
||||
use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface;
|
||||
use Plugin\OAuth2\Entity;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\OAuth2\Repository;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\DB;
|
||||
use App\Util\Exception\NotFoundException;
|
||||
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||||
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
|
||||
|
@ -33,7 +33,7 @@ declare(strict_types = 1);
|
||||
|
||||
namespace Plugin\OAuth2\Repository;
|
||||