koel/app/Facades/License.php

25 lines
491 B
PHP
Raw Normal View History

2024-01-03 17:02:18 +00:00
<?php
namespace App\Facades;
2024-01-09 18:34:40 +00:00
use App\Services\License\FakePlusLicenseService;
2024-01-03 17:02:18 +00:00
use Illuminate\Support\Facades\Facade;
/**
* @method static bool isPlus()
* @method static bool isCommunity()
2024-01-09 18:34:40 +00:00
* @see \App\Services\License\LicenseService
2024-01-03 17:02:18 +00:00
*/
class License extends Facade
{
protected static function getFacadeAccessor(): string
{
return 'License';
}
2024-01-09 18:34:40 +00:00
public static function fakePlusLicense(): void
{
self::swap(app(FakePlusLicenseService::class));
}
2024-01-03 17:02:18 +00:00
}