mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-24 21:36:07 +02:00
* feat: initial commit for feature management * style: fix StyleCI findings * fix(api): prohibit features of nonnull scope from API & fix(admin): wrong translate key * style: fix Static Analysis error
39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Seeders\Admin\Feature;
|
|
|
|
use App\Constants\FeatureConstants;
|
|
use App\Features\AllowAudioStreams;
|
|
use App\Features\AllowDumpDownloading;
|
|
use App\Features\AllowPlaylistManagement;
|
|
use App\Features\AllowScriptDownloading;
|
|
use App\Features\AllowVideoStreams;
|
|
use Illuminate\Database\Seeder;
|
|
use Laravel\Pennant\Feature;
|
|
|
|
/**
|
|
* Class FeatureSeeder.
|
|
*/
|
|
class FeatureSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run(): void
|
|
{
|
|
Feature::deactivate(AllowAudioStreams::class);
|
|
Feature::deactivate(AllowDumpDownloading::class);
|
|
Feature::deactivate(AllowPlaylistManagement::class);
|
|
Feature::deactivate(AllowScriptDownloading::class);
|
|
Feature::deactivate(AllowVideoStreams::class);
|
|
|
|
Feature::deactivate(FeatureConstants::ALLOW_DISCORD_NOTIFICATIONS);
|
|
Feature::deactivate(FeatureConstants::ALLOW_VIEW_RECORDING);
|
|
Feature::deactivate(FeatureConstants::REQUIRED_ENCODER_VERSION);
|
|
}
|
|
}
|