diff --git a/src/Orm/Services.php b/src/Orm/Services.php index 03ea05e..7f220fe 100644 --- a/src/Orm/Services.php +++ b/src/Orm/Services.php @@ -5,6 +5,7 @@ namespace Uxmp\Core\Orm; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\EntityRepository; use Uxmp\Core\Orm\Model\AccessKey; use Uxmp\Core\Orm\Model\Album; use Uxmp\Core\Orm\Model\Artist; @@ -37,19 +38,19 @@ use Uxmp\Core\Orm\Repository\UserRepositoryInterface; return [ - ArtistRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Artist::class), - AlbumRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Album::class), - SongRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Song::class), - DiscRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Disc::class), - SessionRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Session::class), - UserRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(User::class), - CatalogRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Catalog::class), - FavoriteRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Favorite::class), - PlaybackHistoryRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(PlaybackHistory::class), - RadioStationRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(RadioStation::class), - PlaylistRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Playlist::class), - AccessKeyRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(AccessKey::class), - TemporaryPlaylistRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(TemporaryPlaylist::class), - GenreRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(Genre::class), - GenreMapRepositoryInterface::class => static fn (EntityManagerInterface $em) => $em->getRepository(GenreMap::class), + ArtistRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Artist::class), + AlbumRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Album::class), + SongRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Song::class), + DiscRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Disc::class), + SessionRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Session::class), + UserRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(User::class), + CatalogRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Catalog::class), + FavoriteRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Favorite::class), + PlaybackHistoryRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(PlaybackHistory::class), + RadioStationRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(RadioStation::class), + PlaylistRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Playlist::class), + AccessKeyRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(AccessKey::class), + TemporaryPlaylistRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(TemporaryPlaylist::class), + GenreRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(Genre::class), + GenreMapRepositoryInterface::class => static fn (EntityManagerInterface $em): EntityRepository => $em->getRepository(GenreMap::class), ];