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