mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Change namespace to App
This commit is contained in:
parent
f64400c46d
commit
a1522f3cd7
183 changed files with 3969 additions and 1848 deletions
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm;
|
||||
namespace App;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Album;
|
||||
use App\Models\Track;
|
||||
use ZipStream;
|
||||
|
||||
class AlbumDownloader
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Validator;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
abstract class CommandBase
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Illuminate\Validation\Validator;
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use App\Models\Album;
|
||||
use App\Models\Image;
|
||||
use Auth;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
use Validator;
|
||||
|
||||
class CreateAlbumCommand extends CommandBase
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Poniverse\Ponyfm\Models\Announcement;
|
||||
use App\Models\Announcement;
|
||||
use Validator;
|
||||
|
||||
class CreateAnnouncementCommand extends CommandBase
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Notification;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Comment;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Album;
|
||||
use App\Models\Comment;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Validator;
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Illuminate\Support\Str;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use App\Models\Genre;
|
||||
use Validator;
|
||||
|
||||
class CreateGenreCommand extends CommandBase
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Notification;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use App\Models\Playlist;
|
||||
use Auth;
|
||||
use Validator;
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Illuminate\Support\Str;
|
||||
use Poniverse\Ponyfm\Models\ShowSong;
|
||||
use App\Models\ShowSong;
|
||||
use Validator;
|
||||
|
||||
class CreateShowSongCommand extends CommandBase
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
use Validator;
|
||||
|
||||
class CreateUserCommand extends CommandBase
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use App\Models\Album;
|
||||
use Auth;
|
||||
|
||||
class DeleteAlbumCommand extends CommandBase
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use Poniverse\Ponyfm\Jobs\DeleteGenre;
|
||||
use App\Models\Genre;
|
||||
use App\Jobs\DeleteGenre;
|
||||
use Validator;
|
||||
|
||||
class DeleteGenreCommand extends CommandBase
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use App\Models\Playlist;
|
||||
use Auth;
|
||||
|
||||
class DeletePlaylistCommand extends CommandBase
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Poniverse\Ponyfm\Models\ShowSong;
|
||||
use Poniverse\Ponyfm\Jobs\DeleteShowSong;
|
||||
use App\Models\ShowSong;
|
||||
use App\Jobs\DeleteShowSong;
|
||||
use Validator;
|
||||
|
||||
class DeleteShowSongCommand extends CommandBase
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Track;
|
||||
|
||||
class DeleteTrackCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Album;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use Gate;
|
||||
use DB;
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\PinnedPlaylist;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use App\Models\PinnedPlaylist;
|
||||
use App\Models\Playlist;
|
||||
use Auth;
|
||||
use Validator;
|
||||
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Notification;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\TrackType;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use App\Models\Album;
|
||||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackType;
|
||||
use App\Models\User;
|
||||
use App\Models\Playlist;
|
||||
use DB;
|
||||
|
||||
class EditTrackCommand extends CommandBase
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use AudioCache;
|
||||
use FFmpegMovie;
|
||||
use File;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Str;
|
||||
use Poniverse\Ponyfm\Exceptions\InvalidEncodeOptionsException;
|
||||
use Poniverse\Ponyfm\Jobs\EncodeTrackFile;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use App\Exceptions\InvalidEncodeOptionsException;
|
||||
use App\Jobs\EncodeTrackFile;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
use SplFileInfo;
|
||||
|
||||
/**
|
||||
|
@ -36,7 +36,7 @@ use SplFileInfo;
|
|||
* been parsed and the track object is created, this generates the track's
|
||||
* corresponding TrackFile objects and ensures that all of them have been encoded.
|
||||
*
|
||||
* @package Poniverse\Ponyfm\Commands
|
||||
* @package App\Commands
|
||||
*/
|
||||
class GenerateTrackFilesCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -18,23 +18,23 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Comment;
|
||||
use Poniverse\Ponyfm\Models\EmailSubscription;
|
||||
use Poniverse\Ponyfm\Models\Favourite;
|
||||
use Poniverse\Ponyfm\Models\Follower;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Notification;
|
||||
use Poniverse\Ponyfm\Models\PinnedPlaylist;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\ResourceUser;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Album;
|
||||
use App\Models\Comment;
|
||||
use App\Models\EmailSubscription;
|
||||
use App\Models\Favourite;
|
||||
use App\Models\Follower;
|
||||
use App\Models\Image;
|
||||
use App\Models\Notification;
|
||||
use App\Models\PinnedPlaylist;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\ResourceUser;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
|
||||
class MergeAccountsCommand extends CommandBase
|
||||
{
|
||||
|
|
|
@ -18,20 +18,20 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Config;
|
||||
use getID3;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Album;
|
||||
use App\Models\Genre;
|
||||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use AudioCache;
|
||||
use File;
|
||||
use Illuminate\Support\Str;
|
||||
use Poniverse\Ponyfm\Models\TrackType;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\TrackType;
|
||||
use App\Models\User;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use DB;
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Str;
|
||||
use Poniverse\Ponyfm\Jobs\UpdateTagsForRenamedGenre;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use App\Jobs\UpdateTagsForRenamedGenre;
|
||||
use App\Models\Genre;
|
||||
use Validator;
|
||||
|
||||
class RenameGenreCommand extends CommandBase
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Str;
|
||||
use Poniverse\Ponyfm\Jobs\UpdateTagsForRenamedShowSong;
|
||||
use Poniverse\Ponyfm\Models\ShowSong;
|
||||
use App\Jobs\UpdateTagsForRenamedShowSong;
|
||||
use App\Models\ShowSong;
|
||||
use Validator;
|
||||
|
||||
class RenameShowSongCommand extends CommandBase
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use DB;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Gate;
|
||||
use Validator;
|
||||
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Notification;
|
||||
use Poniverse\Ponyfm\Contracts\Favouritable;
|
||||
use Poniverse\Ponyfm\Models\Favourite;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\ResourceUser;
|
||||
use App\Contracts\Favouritable;
|
||||
use App\Models\Favourite;
|
||||
use App\Models\Track;
|
||||
use App\Models\Album;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\ResourceUser;
|
||||
use Auth;
|
||||
use DB;
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Follower;
|
||||
use Poniverse\Ponyfm\Models\ResourceUser;
|
||||
use App\Models\Follower;
|
||||
use App\Models\ResourceUser;
|
||||
use Auth;
|
||||
use Notification;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Commands;
|
||||
namespace App\Commands;
|
||||
|
||||
use Auth;
|
||||
use Carbon\Carbon;
|
||||
|
@ -26,8 +26,8 @@ use Config;
|
|||
use Gate;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Validator;
|
||||
|
||||
class UploadTrackCommand extends CommandBase
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\ShowSong;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\TrackType;
|
||||
use App\Models\ShowSong;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackType;
|
||||
use DB;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Str;
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use File;
|
||||
use Illuminate\Console\Command;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use App\Models\TrackFile;
|
||||
|
||||
class ClearTrackCache extends Command
|
||||
{
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Config;
|
||||
use DB;
|
||||
use File;
|
||||
use getID3;
|
||||
use Illuminate\Console\Command;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use App\Models\Image;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
||||
class FixMLPMAImages extends Command
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Auth;
|
||||
use Carbon\Carbon;
|
||||
|
@ -9,12 +9,12 @@ use DB;
|
|||
use File;
|
||||
use Input;
|
||||
use getID3;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Commands\UploadTrackCommand;
|
||||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use App\Models\Genre;
|
||||
use App\Models\Album;
|
||||
use App\Commands\UploadTrackCommand;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Str;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
|
|
@ -18,24 +18,24 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Collection;
|
||||
use Poniverse\Ponyfm\Commands\MergeAccountsCommand;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Comment;
|
||||
use Poniverse\Ponyfm\Models\Favourite;
|
||||
use Poniverse\Ponyfm\Models\Follower;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\PinnedPlaylist;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\ResourceUser;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Commands\MergeAccountsCommand;
|
||||
use App\Models\Album;
|
||||
use App\Models\Comment;
|
||||
use App\Models\Favourite;
|
||||
use App\Models\Follower;
|
||||
use App\Models\Image;
|
||||
use App\Models\PinnedPlaylist;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\ResourceUser;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
|
||||
class MergeAccounts extends Command
|
||||
{
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use App\Models\Image;
|
||||
use App\Models\ResourceLogItem;
|
||||
use DB;
|
||||
use Exception;
|
||||
use Illuminate\Console\Command;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use GuzzleHttp\Exception\ClientException;
|
||||
use Illuminate\Console\Command;
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
|
||||
class RebuildArtists extends Command
|
||||
{
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use File;
|
||||
use Illuminate\Console\Command;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use App\Models\TrackFile;
|
||||
|
||||
class RebuildFilesizes extends Command
|
||||
{
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use App\Models\Image;
|
||||
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
|
||||
use Symfony\Component\HttpFoundation\File\File;
|
||||
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Album;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
|
||||
class RebuildSearchIndex extends Command
|
||||
{
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Track;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class RebuildTags extends Command
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Poniverse\Ponyfm\Commands\GenerateTrackFilesCommand;
|
||||
use Poniverse\Ponyfm\Jobs\EncodeTrackFile;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Commands\GenerateTrackFilesCommand;
|
||||
use App\Jobs\EncodeTrackFile;
|
||||
use App\Models\Track;
|
||||
|
||||
class RebuildTrack extends Command
|
||||
{
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use File;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Poniverse\Ponyfm\Jobs\EncodeTrackFile;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use App\Jobs\EncodeTrackFile;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
|
||||
class RebuildTrackCache extends Command
|
||||
{
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use App\Models\ResourceLogItem;
|
||||
use DB;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use League\OAuth2\Client\Token\AccessToken;
|
||||
use Poniverse\Lib\Client;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
|
||||
class SyncPoniverseAccounts extends Command
|
||||
{
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console\Commands;
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use File;
|
||||
use Illuminate\Console\Command;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use App\Models\TrackFile;
|
||||
|
||||
class VersionFiles extends Command
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Console;
|
||||
namespace App\Console;
|
||||
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Contracts;
|
||||
namespace App\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
|
@ -26,7 +26,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||
* This interface is used for type safety when referring to entities that
|
||||
* are capable of accepting comments.
|
||||
*
|
||||
* @package Poniverse\Ponyfm\Contracts
|
||||
* @package App\Contracts
|
||||
*/
|
||||
interface Commentable extends GeneratesNotifications
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Contracts;
|
||||
namespace App\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
|
@ -26,7 +26,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
|||
* This interface is used for type safety when referring to entities that
|
||||
* are capable of being favourited.
|
||||
*
|
||||
* @package Poniverse\Ponyfm\Contracts
|
||||
* @package App\Contracts
|
||||
*/
|
||||
interface Favouritable extends GeneratesNotifications
|
||||
{
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Contracts;
|
||||
namespace App\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
|
||||
/**
|
||||
* This interface is used for type safety when referring to entities that can be
|
||||
* the "target resource" of a notification (ie. what the notification is about).
|
||||
*
|
||||
* @package Poniverse\Ponyfm\Contracts
|
||||
* @package App\Contracts
|
||||
*/
|
||||
interface GeneratesNotifications
|
||||
{
|
||||
|
|
|
@ -18,16 +18,16 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Contracts;
|
||||
namespace App\Contracts;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Comment;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Comment;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
|
||||
/**
|
||||
* Interface NotificationHandler
|
||||
* @package Poniverse\Ponyfm\Contracts
|
||||
* @package App\Contracts
|
||||
*
|
||||
* Each method in this interface represents a type of notification. To add a new
|
||||
* type of notification, add a method for it to this interface and every class
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Contracts;
|
||||
namespace App\Contracts;
|
||||
|
||||
interface Searchable
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Exceptions;
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Exceptions;
|
||||
namespace App\Exceptions;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
||||
|
|
|
@ -18,13 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Exceptions;
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
|
||||
/**
|
||||
* Class TrackFileNotFoundException
|
||||
* @package Poniverse\Ponyfm
|
||||
*
|
||||
* This exception is used to indicate that the requested `TrackFile` object
|
||||
* does not exist. This is useful when dealing with albums or playlists that
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Facades;
|
||||
namespace App\Facades;
|
||||
|
||||
use Illuminate\Support\Facades\Facade;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Config;
|
||||
use Redirect;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Poniverse\Ponyfm\AlbumDownloader;
|
||||
use App\AlbumDownloader;
|
||||
use App;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Album;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use Redirect;
|
||||
use View;
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Mobile;
|
||||
namespace App\Http\Controllers\Api\Mobile;
|
||||
|
||||
use Poniverse\Ponyfm\Http\Controllers\Controller;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Track;
|
||||
use Response;
|
||||
|
||||
class TracksController extends Controller
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\V1;
|
||||
namespace App\Http\Controllers\Api\V1;
|
||||
|
||||
use Poniverse\Ponyfm\Commands\UploadTrackCommand;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Commands\UploadTrackCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use Response;
|
||||
|
||||
class TracksController extends ApiControllerBase
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Commands\SaveAccountSettingsCommand;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Commands\SaveAccountSettingsCommand;
|
||||
use App\Models\User;
|
||||
use App\Models\Image;
|
||||
use Gate;
|
||||
use Auth;
|
||||
use Request;
|
||||
|
|
|
@ -18,22 +18,22 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Commands\CreateAlbumCommand;
|
||||
use Poniverse\Ponyfm\Commands\DeleteAlbumCommand;
|
||||
use Poniverse\Ponyfm\Commands\EditAlbumCommand;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use App\Models\Album;
|
||||
use App\Commands\CreateAlbumCommand;
|
||||
use App\Commands\DeleteAlbumCommand;
|
||||
use App\Commands\EditAlbumCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\ResourceLogItem;
|
||||
use Auth;
|
||||
use Gate;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
use Response;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Track;
|
||||
|
||||
class AlbumsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Session\Store;
|
||||
use Poniverse\Ponyfm\Http\Controllers\Controller;
|
||||
use Poniverse\Ponyfm\Models\AlexaSession;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\AlexaSession;
|
||||
use App\Models\Track;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class AlexaController extends Controller
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Poniverse\Ponyfm\Commands\CreateAnnouncementCommand;
|
||||
use Poniverse\Ponyfm\Http\Controllers\Controller;
|
||||
use Poniverse\Ponyfm\Models\Announcement;
|
||||
use App\Commands\CreateAnnouncementCommand;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Announcement;
|
||||
use Request;
|
||||
use Response;
|
||||
|
||||
|
|
|
@ -18,18 +18,18 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Gate;
|
||||
use Poniverse\Ponyfm\Commands\CreateUserCommand;
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Models\Comment;
|
||||
use Poniverse\Ponyfm\Models\Favourite;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use Poniverse\Ponyfm\Models\Follower;
|
||||
use App\Commands\CreateUserCommand;
|
||||
use App\Models\Album;
|
||||
use App\Models\Comment;
|
||||
use App\Models\Favourite;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use App\Models\Follower;
|
||||
use App;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
|
@ -69,10 +69,10 @@ class ArtistsController extends ApiControllerBase
|
|||
$albums = [];
|
||||
|
||||
foreach ($favs as $fav) {
|
||||
if ($fav->type == 'Poniverse\Ponyfm\Models\Track') {
|
||||
if ($fav->type == 'App\Models\Track') {
|
||||
$tracks[] = Track::mapPublicTrackSummary($fav->track);
|
||||
} else {
|
||||
if ($fav->type == 'Poniverse\Ponyfm\Models\Album') {
|
||||
if ($fav->type == 'App\Models\Album') {
|
||||
$albums[] = Album::mapPublicAlbumSummary($fav->album);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Poniverse\Ponyfm\Http\Controllers\Controller;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use App;
|
||||
use Poniverse\Ponyfm\Commands\CreateCommentCommand;
|
||||
use Poniverse\Ponyfm\Models\Comment;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use App\Commands\CreateCommentCommand;
|
||||
use App\Models\Comment;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Response;
|
||||
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Album;
|
||||
use Poniverse\Ponyfm\Commands\ToggleFavouriteCommand;
|
||||
use Poniverse\Ponyfm\Models\Favourite;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Album;
|
||||
use App\Commands\ToggleFavouriteCommand;
|
||||
use App\Models\Favourite;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Response;
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Poniverse\Ponyfm\Commands\ToggleFollowingCommand;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use App\Commands\ToggleFollowingCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
|
||||
class FollowController extends ApiControllerBase
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Commands\CreateGenreCommand;
|
||||
use Poniverse\Ponyfm\Commands\DeleteGenreCommand;
|
||||
use Poniverse\Ponyfm\Commands\RenameGenreCommand;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use App\Commands\CreateGenreCommand;
|
||||
use App\Commands\DeleteGenreCommand;
|
||||
use App\Commands\RenameGenreCommand;
|
||||
use App\Models\Genre;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use Response;
|
||||
|
||||
class GenresController extends ApiControllerBase
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Auth;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\User;
|
||||
use Response;
|
||||
|
||||
class ImagesController extends ApiControllerBase
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Notification;
|
||||
use Poniverse\Ponyfm\Models\Subscription;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Notification;
|
||||
use App\Models\Subscription;
|
||||
use App\Models\Track;
|
||||
use App\Models\User;
|
||||
use Minishlink\WebPush\WebPush;
|
||||
|
||||
class NotificationsController extends ApiControllerBase
|
||||
|
|
|
@ -18,23 +18,23 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Poniverse\Ponyfm\Commands\AddTrackToPlaylistCommand;
|
||||
use Poniverse\Ponyfm\Commands\CreatePlaylistCommand;
|
||||
use Poniverse\Ponyfm\Commands\DeletePlaylistCommand;
|
||||
use Poniverse\Ponyfm\Commands\EditPlaylistCommand;
|
||||
use Poniverse\Ponyfm\Commands\RemoveTrackFromPlaylistCommand;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use App\Commands\AddTrackToPlaylistCommand;
|
||||
use App\Commands\CreatePlaylistCommand;
|
||||
use App\Commands\DeletePlaylistCommand;
|
||||
use App\Commands\EditPlaylistCommand;
|
||||
use App\Commands\RemoveTrackFromPlaylistCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\Image;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\ResourceLogItem;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
use Response;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Models\Track;
|
||||
|
||||
class PlaylistsController extends ApiControllerBase
|
||||
{
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Elasticsearch;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Library\Search;
|
||||
use App\Library\Search;
|
||||
use Response;
|
||||
|
||||
class SearchController extends ApiControllerBase
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Commands\CreateShowSongCommand;
|
||||
use Poniverse\Ponyfm\Commands\DeleteShowSongCommand;
|
||||
use Poniverse\Ponyfm\Commands\RenameShowSongCommand;
|
||||
use Poniverse\Ponyfm\Models\ShowSong;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use App\Commands\CreateShowSongCommand;
|
||||
use App\Commands\DeleteShowSongCommand;
|
||||
use App\Commands\RenameShowSongCommand;
|
||||
use App\Models\ShowSong;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use Response;
|
||||
|
||||
class ShowSongsController extends ApiControllerBase
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use DB;
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Models\License;
|
||||
use Poniverse\Ponyfm\Models\ShowSong;
|
||||
use Poniverse\Ponyfm\Models\TrackType;
|
||||
use App\Models\Genre;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Models\License;
|
||||
use App\Models\ShowSong;
|
||||
use App\Models\TrackType;
|
||||
use DB;
|
||||
|
||||
class TaxonomiesController extends ApiControllerBase
|
||||
|
|
|
@ -18,24 +18,24 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
||||
namespace App\Http\Controllers\Api\Web;
|
||||
|
||||
use Auth;
|
||||
use File;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Facades\Request;
|
||||
use Poniverse\Ponyfm\Commands\DeleteTrackCommand;
|
||||
use Poniverse\Ponyfm\Commands\EditTrackCommand;
|
||||
use Poniverse\Ponyfm\Commands\GenerateTrackFilesCommand;
|
||||
use Poniverse\Ponyfm\Commands\UploadTrackCommand;
|
||||
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
||||
use Poniverse\Ponyfm\Jobs\EncodeTrackFile;
|
||||
use Poniverse\Ponyfm\Models\Genre;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\TrackType;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Commands\DeleteTrackCommand;
|
||||
use App\Commands\EditTrackCommand;
|
||||
use App\Commands\GenerateTrackFilesCommand;
|
||||
use App\Commands\UploadTrackCommand;
|
||||
use App\Http\Controllers\ApiControllerBase;
|
||||
use App\Jobs\EncodeTrackFile;
|
||||
use App\Models\Genre;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackType;
|
||||
use App\Models\TrackFile;
|
||||
use App\Models\User;
|
||||
use Response;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Poniverse\Ponyfm\Commands\CommandBase;
|
||||
use App\Commands\CommandBase;
|
||||
use Response;
|
||||
|
||||
abstract class ApiControllerBase extends Controller
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
use View;
|
||||
use Redirect;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Input;
|
||||
|
@ -26,8 +26,8 @@ use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
|
|||
use League\OAuth2\Client\Token\AccessToken;
|
||||
use Log;
|
||||
use Poniverse\Lib\Client;
|
||||
use Poniverse\Ponyfm\Models\Activity;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\Activity;
|
||||
use App\Models\User;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Request;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Poniverse\Ponyfm\Models\Image;
|
||||
use App\Models\Image;
|
||||
use Config;
|
||||
use App;
|
||||
use Redirect;
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Auth;
|
||||
use DB;
|
||||
use Poniverse\Ponyfm\Models\Email;
|
||||
use Poniverse\Ponyfm\Models\EmailSubscription;
|
||||
use App\Models\Email;
|
||||
use App\Models\EmailSubscription;
|
||||
use View;
|
||||
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App;
|
||||
use Poniverse\Ponyfm\Models\Playlist;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\PlaylistDownloader;
|
||||
use App\Models\Playlist;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\PlaylistDownloader;
|
||||
use Auth;
|
||||
use Redirect;
|
||||
use View;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Poniverse\Ponyfm\Models\ResourceLogItem;
|
||||
use Poniverse\Ponyfm\Models\Track;
|
||||
use Poniverse\Ponyfm\Models\TrackFile;
|
||||
use App\Models\ResourceLogItem;
|
||||
use App\Models\Track;
|
||||
use App\Models\TrackFile;
|
||||
use Auth;
|
||||
use Config;
|
||||
use App;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Controllers;
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use View;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http;
|
||||
namespace App\Http;
|
||||
|
||||
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
||||
|
||||
|
@ -35,13 +35,13 @@ class Kernel extends HttpKernel
|
|||
|
||||
protected $middlewareGroups = [
|
||||
'web' => [
|
||||
\Poniverse\Ponyfm\Http\Middleware\EncryptCookies::class,
|
||||
\App\Http\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
\Poniverse\Ponyfm\Http\Middleware\VerifyCsrfToken::class,
|
||||
\Poniverse\Ponyfm\Http\Middleware\DisabledAccountCheck::class,
|
||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||
\App\Http\Middleware\DisabledAccountCheck::class,
|
||||
]
|
||||
];
|
||||
|
||||
|
@ -51,12 +51,12 @@ class Kernel extends HttpKernel
|
|||
* @var array
|
||||
*/
|
||||
protected $routeMiddleware = [
|
||||
'auth' => \Poniverse\Ponyfm\Http\Middleware\Authenticate::class,
|
||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
'auth.oauth' => \Poniverse\Ponyfm\Http\Middleware\AuthenticateOAuth::class,
|
||||
'can' => \Poniverse\Ponyfm\Http\Middleware\Authorize::class,
|
||||
'json-exceptions' => \Poniverse\Ponyfm\Http\Middleware\JsonExceptions::class,
|
||||
'guest' => \Poniverse\Ponyfm\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'auth.oauth' => \App\Http\Middleware\AuthenticateOAuth::class,
|
||||
'can' => \App\Http\Middleware\Authorize::class,
|
||||
'json-exceptions' => \App\Http\Middleware\JsonExceptions::class,
|
||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'cors' => \Barryvdh\Cors\HandleCors::class,
|
||||
];
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Middleware;
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Middleware;
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
@ -27,7 +27,7 @@ use Illuminate\Session\Store;
|
|||
use League\OAuth2\Client\Token\AccessToken;
|
||||
use Poniverse;
|
||||
use Poniverse\Lib\Client;
|
||||
use Poniverse\Ponyfm\Models\User;
|
||||
use App\Models\User;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
|
||||
class AuthenticateOAuth
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Middleware;
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Gate;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Middleware;
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Middleware;
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
|
||||
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace Poniverse\Ponyfm\Http\Middleware;
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
|
||||
/**
|
||||
* Class JsonExceptions
|
||||
* @package Poniverse\Ponyfm\Http\Middleware
|
||||
* @package App\Http\Middleware
|
||||
*
|
||||
* This middleware turns any HTTP exceptions thrown during the request
|
||||
* into a JSON response. To be used when implementing the API!
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue