Skip to content

Commit

Permalink
Apply rector code migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Mar 18, 2024
1 parent 24b8bcb commit aa7b624
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/Orm/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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),
];

0 comments on commit aa7b624

Please sign in to comment.