没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
PlayCool。 用于Spotify测试的播放列表API管理器。 建筑学 我尝试做一些DDD。 但是正如您将看到的,并不是100%DDD实现。 我想尝试DDD方法,但是我不想对代码过于严格。 从“域”对象到“演示”,APP共有3层。 域层 该层包含我们域的对象,并与存储库签约。 在Entity文件夹中,我们有 轨道:具有和ID以及轨道名称的对象 播放列表:带有名称和ID的曲目列表。 专辑:与播放列表相同(我们可以添加专辑发行,专辑类型等) 艺术家:专辑列表和艺术家名称+ ID。 在ValueObject文件夹中,我们有代表唯一ID的对象。 这在更改id验证和类型时非常有用。 Contract文件夹具有用于存储库的所有接口。 Aggregate具有一个称为AggregateSearch的PPO,这是在一次搜索中混合曲目,专辑和艺术家的结果。 最后,我们为Doctrine
资源推荐
资源详情
资源评论
收起资源包目录
PlayCool-master.zip (91个子文件)
PlayCool-master
composer.json 568B
composer.lock 52KB
var
.gitignore 14B
tests
Naxhh
Playcool
Domain
Entity
PlaylistTest.php 1009B
ArtistTest.php 888B
AlbumTest.php 869B
Application
UseCase
SearchTrackUseCaseTest.php 1KB
UpdatePlaylistNameUseCaseTest.php 2KB
SearchArtistUseCaseTest.php 1KB
GetAllPlaylistsUseCaseTest.php 870B
CreatePlaylistUseCaseTest.php 1KB
RemovePlaylistUseCaseTest.php 853B
GetPlaylistUseCaseTest.php 942B
SearchAlbumUseCaseTest.php 1KB
Helper
PlaylistBuilder.php 515B
src
Naxhh
PlayCool
Presentation
Service
RepositoryService.php 2KB
SpotifyApiService.php 1KB
FractalService.php 459B
Services.php 441B
Routes.php 2KB
Controller
Search.php 2KB
CreatePlaylist.php 1KB
GetPlaylist.php 1KB
GetAlbum.php 1KB
RemovePlaylist.php 842B
GetAllPlaylists.php 888B
GetArtist.php 1KB
UpdatePlaylist.php 2KB
Transformer
ArtistTransformer.php 702B
AlbumTransformer.php 692B
SearchTransformer.php 991B
PlaylistTransformer.php 748B
TrackTransformer.php 426B
Domain
Entity
Playlist.php 2KB
Artist.php 2KB
Track.php 1KB
Album.php 2KB
ValueObject
TrackIdentity.php 228B
AlbumIdentity.php 228B
PlaylistIdentity.php 231B
ArtistIdentity.php 229B
Contract
TrackRepository.php 684B
PlaylistRepository.php 898B
ArtistRepository.php 694B
AlbumRepository.php 683B
Adapter
ArrayCollection.php 250B
Aggregate
SearchAggregate.php 912B
Exception
ArtistNotFoundException.php 109B
PlaylistNotFoundException.php 111B
TrackNotFoundException.php 108B
AlbumNotFoundException.php 108B
Application
UseCase
UpdatePlaylistUseCase.php 2KB
SearchTrackUseCase.php 625B
GetPlaylistUseCase.php 741B
SearchAlbumUseCase.php 617B
GetArtistAlbumsUseCase.php 720B
CreatePlaylistUseCase.php 764B
GetAllPlaylistsUseCase.php 638B
GetAlbumTracksUseCase.php 709B
SearchArtistUseCase.php 621B
RemovePlaylistUseCase.php 793B
Command
GetPlaylistCommand.php 454B
SearchAlbumCommand.php 534B
UpdatePlaylistCommand.php 1KB
GetAllPlaylistsCommand.php 333B
GetArtistAlbumsCommand.php 473B
RemovePlaylistCommand.php 455B
GetAlbumTracksCommand.php 475B
SearchTrackCommand.php 534B
SearchArtistCommand.php 535B
CreatePlaylistCommand.php 647B
Contract
UseCase.php 460B
Command.php 383B
Exception
InvalidPlaylistNameException.php 119B
Infrastructure
Spotify
RuntimeCacheDecorator.php 1KB
Credentials.php 277B
NotFoundException.php 190B
Api.php 2KB
Contract
TrackBuilder.php 384B
Cache
Redis.php 5KB
Repository
Redis
TrackRepository.php 1KB
PlaylistRepository.php 1KB
ArtistRepository.php 1KB
AlbumRepository.php 1KB
Spotify
TrackRepository.php 2KB
ArtistRepository.php 2KB
AlbumRepository.php 2KB
File
PlaylistRepository.php 3KB
.gitignore 32B
web
index.php 565B
README.md 5KB
共 91 条
- 1
资源评论
小旗旗
- 粉丝: 25
- 资源: 4557
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功