public function doGet(JsonResponse $response, LoggedIn $me) { $playlists = PlaylistDao::getList([TPlaylists::USER_ID => $me->getId()]); $playlist_objects = $playlists->map(Mapper::call(Playlist::class, "new")); $response->write($playlist_objects); }