文件操作 - LicenseServiceProvider.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/License/LicenseServiceProvider.php
编辑文件内容
<?php namespace Give\License; use Give\Framework\Migrations\MigrationsRegister; use Give\Helpers\Hooks; use Give\License\Actions\AddPlatformFeeAmountToSystemInfo; use Give\License\Migrations\RefreshLicensesForPlatformFee; use Give\License\Migrations\RefreshLicensesForLastActiveDate; use Give\License\Repositories\LicenseRepository; use Give\ServiceProviders\ServiceProvider; class LicenseServiceProvider implements ServiceProvider { /** * @since 4.3.0 added LicenseRepository singleton * @since 2.11.3 */ public function register() { give()->singleton(PremiumAddonsListManager::class); give()->singleton(LicenseRepository::class); } /** * @since 4.3.0 added refresh-licenses-for-platform-fee migration * @since 2.11.3 */ public function boot() { /** @var MigrationsRegister $migrationRegistrar */ $migrationRegistrar = give(MigrationsRegister::class); $migrationRegistrar->addMigration(RefreshLicensesForPlatformFee::class); $migrationRegistrar->addMigration(RefreshLicensesForLastActiveDate::class); Hooks::addAction('give_add_system_info_configuration', AddPlatformFeeAmountToSystemInfo::class); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件