provides, true ); } /** * Register the service in the provider array * * @return void */ public function boot(): void { $hosting_service = HostResolver::get_host_service(); if ( ! empty( $hosting_service ) ) { $this->provides[] = $hosting_service; } } /** * Registers the current hosting subscriber in the container * * @since 3.6.3 * * @return void */ public function register(): void { $hosting_service = HostResolver::get_host_service(); if ( ! empty( $hosting_service ) ) { $this->getContainer() ->addShared( $hosting_service, ( new HostSubscriberFactory() )->get_subscriber() ); } } }