Change namespace to App

This commit is contained in:
Adam Lavin 2021-02-14 02:34:58 +00:00
parent f64400c46d
commit a1522f3cd7
No known key found for this signature in database
GPG key ID: 623D776DB6C4751C
183 changed files with 3969 additions and 1848 deletions

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm; namespace App;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use ZipStream; use ZipStream;
class AlbumDownloader class AlbumDownloader

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Auth; use Auth;
use DB; use DB;
use Validator; use Validator;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
abstract class CommandBase abstract class CommandBase
{ {

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Illuminate\Validation\Validator; use Illuminate\Validation\Validator;

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Auth; use Auth;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Validator; use Validator;
class CreateAlbumCommand extends CommandBase class CreateAlbumCommand extends CommandBase

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Poniverse\Ponyfm\Models\Announcement; use App\Models\Announcement;
use Validator; use Validator;
class CreateAnnouncementCommand extends CommandBase class CreateAnnouncementCommand extends CommandBase

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Notification; use Notification;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Comment; use App\Models\Comment;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Auth; use Auth;
use Validator; use Validator;

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Validator; use Validator;
class CreateGenreCommand extends CommandBase class CreateGenreCommand extends CommandBase

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Notification; use Notification;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Auth; use Auth;
use Validator; use Validator;

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Poniverse\Ponyfm\Models\ShowSong; use App\Models\ShowSong;
use Validator; use Validator;
class CreateShowSongCommand extends CommandBase class CreateShowSongCommand extends CommandBase

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Validator; use Validator;
class CreateUserCommand extends CommandBase class CreateUserCommand extends CommandBase

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Auth; use Auth;
class DeleteAlbumCommand extends CommandBase class DeleteAlbumCommand extends CommandBase

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Poniverse\Ponyfm\Jobs\DeleteGenre; use App\Jobs\DeleteGenre;
use Validator; use Validator;
class DeleteGenreCommand extends CommandBase class DeleteGenreCommand extends CommandBase

View file

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; use Auth;
class DeletePlaylistCommand extends CommandBase class DeletePlaylistCommand extends CommandBase

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Poniverse\Ponyfm\Models\ShowSong; use App\Models\ShowSong;
use Poniverse\Ponyfm\Jobs\DeleteShowSong; use App\Jobs\DeleteShowSong;
use Validator; use Validator;
class DeleteShowSongCommand extends CommandBase class DeleteShowSongCommand extends CommandBase

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
class DeleteTrackCommand extends CommandBase class DeleteTrackCommand extends CommandBase
{ {

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\Album;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Auth; use Auth;
use Gate; use Gate;
use DB; use DB;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\PinnedPlaylist;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Auth; use Auth;
use Validator; use Validator;

View file

@ -18,16 +18,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Notification; use Notification;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\TrackType; use App\Models\TrackType;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use DB; use DB;
class EditTrackCommand extends CommandBase class EditTrackCommand extends CommandBase

View file

@ -18,17 +18,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use AudioCache; use AudioCache;
use FFmpegMovie; use FFmpegMovie;
use File; use File;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Poniverse\Ponyfm\Exceptions\InvalidEncodeOptionsException; use App\Exceptions\InvalidEncodeOptionsException;
use Poniverse\Ponyfm\Jobs\EncodeTrackFile; use App\Jobs\EncodeTrackFile;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
use SplFileInfo; use SplFileInfo;
/** /**
@ -36,7 +36,7 @@ use SplFileInfo;
* been parsed and the track object is created, this generates the track's * 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. * corresponding TrackFile objects and ensures that all of them have been encoded.
* *
* @package Poniverse\Ponyfm\Commands * @package App\Commands
*/ */
class GenerateTrackFilesCommand extends CommandBase class GenerateTrackFilesCommand extends CommandBase
{ {

View file

@ -18,23 +18,23 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Carbon\Carbon; use Carbon\Carbon;
use DB; use DB;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Comment; use App\Models\Comment;
use Poniverse\Ponyfm\Models\EmailSubscription; use App\Models\EmailSubscription;
use Poniverse\Ponyfm\Models\Favourite; use App\Models\Favourite;
use Poniverse\Ponyfm\Models\Follower; use App\Models\Follower;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Notification; use App\Models\Notification;
use Poniverse\Ponyfm\Models\PinnedPlaylist; use App\Models\PinnedPlaylist;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\ResourceUser; use App\Models\ResourceUser;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
class MergeAccountsCommand extends CommandBase class MergeAccountsCommand extends CommandBase
{ {

View file

@ -18,20 +18,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Carbon\Carbon; use Carbon\Carbon;
use Config; use Config;
use getID3; use getID3;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use AudioCache; use AudioCache;
use File; use File;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Poniverse\Ponyfm\Models\TrackType; use App\Models\TrackType;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Auth; use Auth;
use DB; use DB;

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Poniverse\Ponyfm\Jobs\UpdateTagsForRenamedGenre; use App\Jobs\UpdateTagsForRenamedGenre;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Validator; use Validator;
class RenameGenreCommand extends CommandBase class RenameGenreCommand extends CommandBase

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Gate; use Gate;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Poniverse\Ponyfm\Jobs\UpdateTagsForRenamedShowSong; use App\Jobs\UpdateTagsForRenamedShowSong;
use Poniverse\Ponyfm\Models\ShowSong; use App\Models\ShowSong;
use Validator; use Validator;
class RenameShowSongCommand extends CommandBase class RenameShowSongCommand extends CommandBase

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use DB; use DB;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Gate; use Gate;
use Validator; use Validator;

View file

@ -18,15 +18,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Notification; use Notification;
use Poniverse\Ponyfm\Contracts\Favouritable; use App\Contracts\Favouritable;
use Poniverse\Ponyfm\Models\Favourite; use App\Models\Favourite;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\ResourceUser; use App\Models\ResourceUser;
use Auth; use Auth;
use DB; use DB;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\Follower;
use Poniverse\Ponyfm\Models\ResourceUser; use App\Models\ResourceUser;
use Auth; use Auth;
use Notification; use Notification;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Commands; namespace App\Commands;
use Auth; use Auth;
use Carbon\Carbon; use Carbon\Carbon;
@ -26,8 +26,8 @@ use Config;
use Gate; use Gate;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Validator; use Validator;
class UploadTrackCommand extends CommandBase class UploadTrackCommand extends CommandBase

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Command;

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\ShowSong;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\TrackType; use App\Models\TrackType;
use DB; use DB;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Str; use Illuminate\Support\Str;

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Carbon\Carbon;
use File; use File;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
class ClearTrackCache extends Command class ClearTrackCache extends Command
{ {

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Console\Commands; namespace App\Console\Commands;
use Config; use Config;
use DB; use DB;
use File; use File;
use getID3; use getID3;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;
class FixMLPMAImages extends Command class FixMLPMAImages extends Command

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Poniverse\Ponyfm\Console\Commands; namespace App\Console\Commands;
use Auth; use Auth;
use Carbon\Carbon; use Carbon\Carbon;
@ -9,12 +9,12 @@ use DB;
use File; use File;
use Input; use Input;
use getID3; use getID3;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Commands\UploadTrackCommand; use App\Commands\UploadTrackCommand;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;

View file

@ -18,24 +18,24 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Carbon\Carbon;
use DB; use DB;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Poniverse\Ponyfm\Commands\MergeAccountsCommand; use App\Commands\MergeAccountsCommand;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Comment; use App\Models\Comment;
use Poniverse\Ponyfm\Models\Favourite; use App\Models\Favourite;
use Poniverse\Ponyfm\Models\Follower; use App\Models\Follower;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\PinnedPlaylist; use App\Models\PinnedPlaylist;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\ResourceUser; use App\Models\ResourceUser;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
class MergeAccounts extends Command class MergeAccounts extends Command
{ {

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\Image;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use DB; use DB;
use Exception; use Exception;
use Illuminate\Console\Command; use Illuminate\Console\Command;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 GuzzleHttp\Exception\ClientException;
use Illuminate\Console\Command; use Illuminate\Console\Command;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Command;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
class RebuildArtists extends Command class RebuildArtists extends Command
{ {

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Console\Commands; namespace App\Console\Commands;
use File; use File;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
class RebuildFilesizes extends Command class RebuildFilesizes extends Command
{ {

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Command;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\HttpFoundation\File\File;

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Command;
use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Collection;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
class RebuildSearchIndex extends Command class RebuildSearchIndex extends Command
{ {

View file

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; use Illuminate\Console\Command;
class RebuildTags extends Command class RebuildTags extends Command

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Command;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Poniverse\Ponyfm\Commands\GenerateTrackFilesCommand; use App\Commands\GenerateTrackFilesCommand;
use Poniverse\Ponyfm\Jobs\EncodeTrackFile; use App\Jobs\EncodeTrackFile;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
class RebuildTrack extends Command class RebuildTrack extends Command
{ {

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Console\Commands; namespace App\Console\Commands;
use File; use File;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;
use Poniverse\Ponyfm\Jobs\EncodeTrackFile; use App\Jobs\EncodeTrackFile;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
class RebuildTrackCache extends Command class RebuildTrackCache extends Command
{ {

View file

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 DB;
use Illuminate\Console\Command; use Illuminate\Console\Command;

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Command;
use League\OAuth2\Client\Token\AccessToken; use League\OAuth2\Client\Token\AccessToken;
use Poniverse\Lib\Client; use Poniverse\Lib\Client;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
class SyncPoniverseAccounts extends Command class SyncPoniverseAccounts extends Command
{ {

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Console\Commands; namespace App\Console\Commands;
use File; use File;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
class VersionFiles extends Command class VersionFiles extends Command
{ {

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; 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 * This interface is used for type safety when referring to entities that
* are capable of accepting comments. * are capable of accepting comments.
* *
* @package Poniverse\Ponyfm\Contracts * @package App\Contracts
*/ */
interface Commentable extends GeneratesNotifications interface Commentable extends GeneratesNotifications
{ {

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; 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 * This interface is used for type safety when referring to entities that
* are capable of being favourited. * are capable of being favourited.
* *
* @package Poniverse\Ponyfm\Contracts * @package App\Contracts
*/ */
interface Favouritable extends GeneratesNotifications interface Favouritable extends GeneratesNotifications
{ {

View file

@ -18,16 +18,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 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 * 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). * the "target resource" of a notification (ie. what the notification is about).
* *
* @package Poniverse\Ponyfm\Contracts * @package App\Contracts
*/ */
interface GeneratesNotifications interface GeneratesNotifications
{ {

View file

@ -18,16 +18,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\Comment;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
/** /**
* Interface NotificationHandler * Interface NotificationHandler
* @package Poniverse\Ponyfm\Contracts * @package App\Contracts
* *
* Each method in this interface represents a type of notification. To add a new * 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 * type of notification, add a method for it to this interface and every class

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Contracts; namespace App\Contracts;
interface Searchable interface Searchable
{ {

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Exceptions; namespace App\Exceptions;
use Exception; use Exception;
use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\AuthenticationException;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Exceptions; namespace App\Exceptions;
use InvalidArgumentException; use InvalidArgumentException;

View file

@ -18,13 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Exceptions; namespace App\Exceptions;
use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\Eloquent\ModelNotFoundException;
/** /**
* Class TrackFileNotFoundException * Class TrackFileNotFoundException
* @package Poniverse\Ponyfm
* *
* This exception is used to indicate that the requested `TrackFile` object * This exception is used to indicate that the requested `TrackFile` object
* does not exist. This is useful when dealing with albums or playlists that * does not exist. This is useful when dealing with albums or playlists that

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Facades; namespace App\Facades;
use Illuminate\Support\Facades\Facade; use Illuminate\Support\Facades\Facade;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use Config; use Config;
use Redirect; use Redirect;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use View; use View;

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Redirect; use Redirect;
use View; use View;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Http\Controllers\Controller;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Response; use Response;
class TracksController extends Controller class TracksController extends Controller

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Commands\UploadTrackCommand;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Response; use Response;
class TracksController extends ApiControllerBase class TracksController extends ApiControllerBase

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Commands\SaveAccountSettingsCommand; use App\Commands\SaveAccountSettingsCommand;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Gate; use Gate;
use Auth; use Auth;
use Request; use Request;

View file

@ -18,22 +18,22 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Illuminate\Database\Eloquent\ModelNotFoundException;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Commands\CreateAlbumCommand; use App\Commands\CreateAlbumCommand;
use Poniverse\Ponyfm\Commands\DeleteAlbumCommand; use App\Commands\DeleteAlbumCommand;
use Poniverse\Ponyfm\Commands\EditAlbumCommand; use App\Commands\EditAlbumCommand;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Auth; use Auth;
use Gate; use Gate;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Response; use Response;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
class AlbumsController extends ApiControllerBase class AlbumsController extends ApiControllerBase
{ {

View file

@ -1,13 +1,13 @@
<?php <?php
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web; namespace App\Http\Controllers\Api\Web;
use Illuminate\Http\JsonResponse; use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Session\Store; use Illuminate\Session\Store;
use Poniverse\Ponyfm\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use Poniverse\Ponyfm\Models\AlexaSession; use App\Models\AlexaSession;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
class AlexaController extends Controller class AlexaController extends Controller

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Carbon\Carbon;
use Poniverse\Ponyfm\Commands\CreateAnnouncementCommand; use App\Commands\CreateAnnouncementCommand;
use Poniverse\Ponyfm\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use Poniverse\Ponyfm\Models\Announcement; use App\Models\Announcement;
use Request; use Request;
use Response; use Response;

View file

@ -18,18 +18,18 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Gate;
use Poniverse\Ponyfm\Commands\CreateUserCommand; use App\Commands\CreateUserCommand;
use Poniverse\Ponyfm\Models\Album; use App\Models\Album;
use Poniverse\Ponyfm\Models\Comment; use App\Models\Comment;
use Poniverse\Ponyfm\Models\Favourite; use App\Models\Favourite;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Poniverse\Ponyfm\Models\Follower; use App\Models\Follower;
use App; use App;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Response; use Response;
@ -69,10 +69,10 @@ class ArtistsController extends ApiControllerBase
$albums = []; $albums = [];
foreach ($favs as $fav) { foreach ($favs as $fav) {
if ($fav->type == 'Poniverse\Ponyfm\Models\Track') { if ($fav->type == 'App\Models\Track') {
$tracks[] = Track::mapPublicTrackSummary($fav->track); $tracks[] = Track::mapPublicTrackSummary($fav->track);
} else { } else {
if ($fav->type == 'Poniverse\Ponyfm\Models\Album') { if ($fav->type == 'App\Models\Album') {
$albums[] = Album::mapPublicAlbumSummary($fav->album); $albums[] = Album::mapPublicAlbumSummary($fav->album);
} }
} }

View file

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 class AuthController extends Controller
{ {

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App;
use Poniverse\Ponyfm\Commands\CreateCommentCommand; use App\Commands\CreateCommentCommand;
use Poniverse\Ponyfm\Models\Comment; use App\Models\Comment;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Response; use Response;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Auth; use Auth;
use Response; use Response;

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\Album;
use Poniverse\Ponyfm\Commands\ToggleFavouriteCommand; use App\Commands\ToggleFavouriteCommand;
use Poniverse\Ponyfm\Models\Favourite; use App\Models\Favourite;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Auth; use Auth;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Response; use Response;

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Commands\ToggleFollowingCommand;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
class FollowController extends ApiControllerBase class FollowController extends ApiControllerBase

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Commands\CreateGenreCommand; use App\Commands\CreateGenreCommand;
use Poniverse\Ponyfm\Commands\DeleteGenreCommand; use App\Commands\DeleteGenreCommand;
use Poniverse\Ponyfm\Commands\RenameGenreCommand; use App\Commands\RenameGenreCommand;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Response; use Response;
class GenresController extends ApiControllerBase class GenresController extends ApiControllerBase

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Auth;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Response; use Response;
class ImagesController extends ApiControllerBase class ImagesController extends ApiControllerBase

View file

@ -18,15 +18,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Auth;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Notification; use App\Models\Notification;
use Poniverse\Ponyfm\Models\Subscription; use App\Models\Subscription;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Minishlink\WebPush\WebPush; use Minishlink\WebPush\WebPush;
class NotificationsController extends ApiControllerBase class NotificationsController extends ApiControllerBase

View file

@ -18,23 +18,23 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Illuminate\Database\Eloquent\ModelNotFoundException;
use Poniverse\Ponyfm\Commands\AddTrackToPlaylistCommand; use App\Commands\AddTrackToPlaylistCommand;
use Poniverse\Ponyfm\Commands\CreatePlaylistCommand; use App\Commands\CreatePlaylistCommand;
use Poniverse\Ponyfm\Commands\DeletePlaylistCommand; use App\Commands\DeletePlaylistCommand;
use Poniverse\Ponyfm\Commands\EditPlaylistCommand; use App\Commands\EditPlaylistCommand;
use Poniverse\Ponyfm\Commands\RemoveTrackFromPlaylistCommand; use App\Commands\RemoveTrackFromPlaylistCommand;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\Image; use App\Models\Image;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Auth; use Auth;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Response; use Response;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
class PlaylistsController extends ApiControllerBase class PlaylistsController extends ApiControllerBase
{ {

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Elasticsearch;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Library\Search; use App\Library\Search;
use Response; use Response;
class SearchController extends ApiControllerBase class SearchController extends ApiControllerBase

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Commands\CreateShowSongCommand; use App\Commands\CreateShowSongCommand;
use Poniverse\Ponyfm\Commands\DeleteShowSongCommand; use App\Commands\DeleteShowSongCommand;
use Poniverse\Ponyfm\Commands\RenameShowSongCommand; use App\Commands\RenameShowSongCommand;
use Poniverse\Ponyfm\Models\ShowSong; use App\Models\ShowSong;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Response; use Response;
class ShowSongsController extends ApiControllerBase class ShowSongsController extends ApiControllerBase

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Illuminate\Database\Eloquent\ModelNotFoundException;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Auth; use Auth;
use Cache; use Cache;
use DB; use DB;

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 App\Models\Genre;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Models\License; use App\Models\License;
use Poniverse\Ponyfm\Models\ShowSong; use App\Models\ShowSong;
use Poniverse\Ponyfm\Models\TrackType; use App\Models\TrackType;
use DB; use DB;
class TaxonomiesController extends ApiControllerBase class TaxonomiesController extends ApiControllerBase

View file

@ -18,24 +18,24 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Auth;
use File; use File;
use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Request;
use Poniverse\Ponyfm\Commands\DeleteTrackCommand; use App\Commands\DeleteTrackCommand;
use Poniverse\Ponyfm\Commands\EditTrackCommand; use App\Commands\EditTrackCommand;
use Poniverse\Ponyfm\Commands\GenerateTrackFilesCommand; use App\Commands\GenerateTrackFilesCommand;
use Poniverse\Ponyfm\Commands\UploadTrackCommand; use App\Commands\UploadTrackCommand;
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase; use App\Http\Controllers\ApiControllerBase;
use Poniverse\Ponyfm\Jobs\EncodeTrackFile; use App\Jobs\EncodeTrackFile;
use Poniverse\Ponyfm\Models\Genre; use App\Models\Genre;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\TrackType; use App\Models\TrackType;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Response; use Response;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;

View file

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; use Response;
abstract class ApiControllerBase extends Controller abstract class ApiControllerBase extends Controller

View file

@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use App; use App;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use View; use View;
use Redirect; use Redirect;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Carbon\Carbon;
use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Input;
@ -26,8 +26,8 @@ use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use League\OAuth2\Client\Token\AccessToken; use League\OAuth2\Client\Token\AccessToken;
use Log; use Log;
use Poniverse\Lib\Client; use Poniverse\Lib\Client;
use Poniverse\Ponyfm\Models\Activity; use App\Models\Activity;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Auth; use Auth;
use DB; use DB;
use Request; use Request;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use View; use View;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Bus\DispatchesJobs;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use View; use View;

View file

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Config;
use App; use App;
use Redirect; use Redirect;

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use App; use App;
use Auth; use Auth;
use DB; use DB;
use Poniverse\Ponyfm\Models\Email; use App\Models\Email;
use Poniverse\Ponyfm\Models\EmailSubscription; use App\Models\EmailSubscription;
use View; use View;

View file

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use App; use App;
use Poniverse\Ponyfm\Models\Playlist; use App\Models\Playlist;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\PlaylistDownloader; use App\PlaylistDownloader;
use Auth; use Auth;
use Redirect; use Redirect;
use View; use View;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use View; use View;

View file

@ -18,12 +18,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 Illuminate\Http\Request;
use Poniverse\Ponyfm\Models\ResourceLogItem; use App\Models\ResourceLogItem;
use Poniverse\Ponyfm\Models\Track; use App\Models\Track;
use Poniverse\Ponyfm\Models\TrackFile; use App\Models\TrackFile;
use Auth; use Auth;
use Config; use Config;
use App; use App;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Controllers; namespace App\Http\Controllers;
use View; use View;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; use Illuminate\Foundation\Http\Kernel as HttpKernel;
@ -35,13 +35,13 @@ class Kernel extends HttpKernel
protected $middlewareGroups = [ protected $middlewareGroups = [
'web' => [ 'web' => [
\Poniverse\Ponyfm\Http\Middleware\EncryptCookies::class, \App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class, \Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class, \Illuminate\Routing\Middleware\SubstituteBindings::class,
\Poniverse\Ponyfm\Http\Middleware\VerifyCsrfToken::class, \App\Http\Middleware\VerifyCsrfToken::class,
\Poniverse\Ponyfm\Http\Middleware\DisabledAccountCheck::class, \App\Http\Middleware\DisabledAccountCheck::class,
] ]
]; ];
@ -51,12 +51,12 @@ class Kernel extends HttpKernel
* @var array * @var array
*/ */
protected $routeMiddleware = [ protected $routeMiddleware = [
'auth' => \Poniverse\Ponyfm\Http\Middleware\Authenticate::class, 'auth' => \App\Http\Middleware\Authenticate::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'auth.oauth' => \Poniverse\Ponyfm\Http\Middleware\AuthenticateOAuth::class, 'auth.oauth' => \App\Http\Middleware\AuthenticateOAuth::class,
'can' => \Poniverse\Ponyfm\Http\Middleware\Authorize::class, 'can' => \App\Http\Middleware\Authorize::class,
'json-exceptions' => \Poniverse\Ponyfm\Http\Middleware\JsonExceptions::class, 'json-exceptions' => \App\Http\Middleware\JsonExceptions::class,
'guest' => \Poniverse\Ponyfm\Http\Middleware\RedirectIfAuthenticated::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'cors' => \Barryvdh\Cors\HandleCors::class, 'cors' => \Barryvdh\Cors\HandleCors::class,
]; ];

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Middleware; namespace App\Http\Middleware;
use Closure; use Closure;
use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\Guard;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Middleware; namespace App\Http\Middleware;
use Closure; use Closure;
use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\Guard;
@ -27,7 +27,7 @@ use Illuminate\Session\Store;
use League\OAuth2\Client\Token\AccessToken; use League\OAuth2\Client\Token\AccessToken;
use Poniverse; use Poniverse;
use Poniverse\Lib\Client; use Poniverse\Lib\Client;
use Poniverse\Ponyfm\Models\User; use App\Models\User;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
class AuthenticateOAuth class AuthenticateOAuth

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Middleware; namespace App\Http\Middleware;
use Closure; use Closure;
use Gate; use Gate;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Middleware; namespace App\Http\Middleware;
use Closure; use Closure;
use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\Guard;

View file

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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; use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;

View file

@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
namespace Poniverse\Ponyfm\Http\Middleware; namespace App\Http\Middleware;
use Closure; use Closure;
use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\HttpException;
/** /**
* Class JsonExceptions * Class JsonExceptions
* @package Poniverse\Ponyfm\Http\Middleware * @package App\Http\Middleware
* *
* This middleware turns any HTTP exceptions thrown during the request * This middleware turns any HTTP exceptions thrown during the request
* into a JSON response. To be used when implementing the API! * 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