provides, true ); } /** * Registers services or bindings within the Backups service provider. * * This method is called to initialize and configure the necessary * components or dependencies required by the Backups service. * * @return void */ public function register(): void { $this->getContainer()->addShared( 'backups_api_rest', BackupsApiRest::class ) ->addArguments( [ 'backwpup_adapter', 'option_adapter', 'job_adapter', 'file_adapter', 'job_types_adapter', 'backwpup_database', ] ); $this->getContainer()->addShared( 'backups_api_subscriber', BackupsApiSubscriber::class ) ->addArguments( [ 'backups_api_rest', ] ); $this->getContainer()->addShared( 'backups_history_frontend_api_rest', BackupsHistoryFrontendApiRest::class ) ->addArguments( [ 'backwpup_adapter', 'option_adapter', 'backwpup_helpers_adapter', 'backwpup_database', ] ); $this->getContainer()->addShared( 'backups_history_frontend_api_subscriber', BackupsHistoryFrontendApiSubscriber::class ) ->addArguments( [ 'backups_history_frontend_api_rest', ] ); $this->getContainer()->addShared( 'backwpup_onboarding', Onboarding::class ) ->addArguments( [ 'job_types_adapter', 'option_adapter', 'job_adapter', 'backwpup_adapter', ] ); $this->getContainer()->addShared( 'backwpup_onboarding_subscriber', OnboardingSubscriber::class ) ->addArguments( [ 'backwpup_onboarding', ] ); } /** * Retrieves the list of subscribers for the service provider. * * @return array An array of subscribers associated with the service provider. */ public function get_subscribers() { return $this->subscribers; } }