[CORE][Router] Rename \App\Core\Router\Router to \App\Core\Router and merge \App\Core\Router\RouteLoader with \App\Core\Router

This commit is contained in:
2022-03-27 16:43:59 +01:00
committed by Diogo Peralta Cordeiro
parent 60af9f5e9b
commit 483983790a
79 changed files with 362 additions and 260 deletions

View File

@@ -35,8 +35,7 @@ use App\Core\DB;
use App\Core\Event;
use function App\Core\I18n\_m;
use App\Core\Modules\Plugin;
use App\Core\Router\RouteLoader;
use App\Core\Router\Router;
use App\Core\Router;
use App\Entity\Actor;
use App\Entity\Feed;
use App\Entity\LocalUser;
@@ -123,7 +122,7 @@ class AttachmentCollections extends Plugin
return array_map(fn ($x) => $x['attachment_collection_id'], $res);
}
public function onAddRoute(RouteLoader $r): bool
public function onAddRoute(Router $r): bool
{
// View all collections by actor id and nickname
$r->connect(

View File

@@ -24,7 +24,7 @@ declare(strict_types = 1);
namespace Plugin\AttachmentCollections\Controller;
use App\Core\DB;
use App\Core\Router\Router;
use App\Core\Router;
use Component\Collection\Util\Controller\MetaCollectionController;
use Plugin\AttachmentCollections\Entity\AttachmentCollection;