![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets-rebuild.corals.io/wp-content/plugins/give/src/License/ |
<?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\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); Hooks::addAction('give_add_system_info_configuration', AddPlatformFeeAmountToSystemInfo::class); } }