Beispiel #1
0
 public function doPost(JsonResponse $response, $playlist_id)
 {
     $playlist = new Playlist($playlist_id);
     $playlist->delete();
 }
Beispiel #2
0
 public static function doPost(JsonResponse $response, $link_id)
 {
     Playlist::removeLinks(MLArray::split(",", $link_id));
 }
Beispiel #3
0
 public function doPost(JsonResponse $response, $playlist_id, $track_id)
 {
     $playlist = new Playlist($playlist_id);
     $playlist->addTracks($track_id);
 }
Beispiel #4
0
 public function doPost(JsonResponse $response, NewPlaylistForm $form)
 {
     $playlist = Playlist::create($form->getName());
     $response->write($playlist);
 }