1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 17:44:05 +00:00

rename command to PurgeImpersonationTokens

This commit is contained in:
Samuel Štancl 2025-10-28 13:42:42 +01:00
parent c3c5955c84
commit a0727fe7a7
No known key found for this signature in database
GPG key ID: BA146259A1E16C57
3 changed files with 6 additions and 6 deletions

View file

@ -10,13 +10,13 @@ use Stancl\Tenancy\Features\UserImpersonation;
/**
* Clears expired impersonation tokens.
*
* Tokens older than UserImpersonation::$ttl (60 seconds by default) are considered expired.
* Tokens older than UserImpersonation::$ttl are considered expired.
*
* @see Stancl\Tenancy\Features\UserImpersonation
*/
class ClearExpiredImpersonationTokens extends Command
class PurgeImpersonationTokens extends Command
{
protected $signature = 'tenants:clear-expired-impersonation-tokens';
protected $signature = 'tenants:purge-impersonation-tokens';
protected $description = 'Clear expired impersonation tokens.';

View file

@ -119,8 +119,8 @@ class TenancyServiceProvider extends ServiceProvider
Commands\MigrateFresh::class,
Commands\ClearPendingTenants::class,
Commands\CreatePendingTenants::class,
Commands\PurgeImpersonationTokens::class,
Commands\CreateUserWithRLSPolicies::class,
Commands\ClearExpiredImpersonationTokens::class,
]);
if (static::$migrateFreshOverride) {