refactor: use GarbageCollector prefix for GC console command classes

Rename the internal garbage collector commands to a consistent
GarbageCollector* naming scheme (file + class). Command signatures are
unchanged, so the scheduler and cron entries are unaffected.

- MediaGarbageCollector          -> GarbageCollectorMedia
- DatabaseSessionGarbageCollector -> GarbageCollectorDatabaseSession
- FailedJobGC                    -> GarbageCollectorFailedJob
- PasswordResetGC                -> GarbageCollectorPasswordReset
- GCRemcache                     -> GarbageCollectorRemcache
- StoryGC                        -> GarbageCollectorStory
- ImportUploadGarbageCollection  -> GarbageCollectorImportUpload
pull/6957/head
Your Name 4 weeks ago
parent 57b3bf140b
commit 9704fd5a36

@ -5,7 +5,7 @@ namespace App\Console\Commands\Internal;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class DatabaseSessionGarbageCollector extends Command
class GarbageCollectorDatabaseSession extends Command
{
/**
* The name and signature of the console command.

@ -5,7 +5,7 @@ namespace App\Console\Commands\Internal;
use App\Models\FailedJob;
use Illuminate\Console\Command;
class FailedJobGC extends Command
class GarbageCollectorFailedJob extends Command
{
/**
* The name and signature of the console command.

@ -6,7 +6,7 @@ use App\Models\ImportPost;
use App\Services\ImportService;
use Illuminate\Console\Command;
class ImportUploadGarbageCollection extends Command
class GarbageCollectorImportUpload extends Command
{
/**
* The name and signature of the console command.

@ -6,7 +6,7 @@ use App\Models\Media;
use App\Services\MediaStorageService;
use Illuminate\Console\Command;
class MediaGarbageCollector extends Command
class GarbageCollectorMedia extends Command
{
/**
* The name and signature of the console command.

@ -5,7 +5,7 @@ namespace App\Console\Commands\Internal;
use App\Models\EmailVerification;
use Illuminate\Console\Command;
class PasswordResetGC extends Command
class GarbageCollectorPasswordReset extends Command
{
/**
* The name and signature of the console command.

@ -4,7 +4,7 @@ namespace App\Console\Commands\Internal;
use Illuminate\Console\Command;
class GCRemcache extends Command
class GarbageCollectorRemcache extends Command
{
/**
* The name and signature of the console command.

@ -8,7 +8,7 @@ use App\Models\Story;
use App\Services\StoryService;
use Illuminate\Console\Command;
class StoryGC extends Command
class GarbageCollectorStory extends Command
{
/**
* The name and signature of the console command.
Loading…
Cancel
Save