Files
animethemes-server/database/seeders/Admin/Feature/FeatureSeeder.php
T
paranarimasu 088ea287c5 feat: initial migration to pennant features for feature flags and global site config [incremental] (#573)
* 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
2023-04-23 18:54:34 -05:00

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);
}
}