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