provides[] = $hosting_service; } } /** * Registers the current hosting subscriber in the container * * @since 3.6.3 * * @return void */ public function register() { $hosting_service = HostResolver::get_host_service(); if ( ! empty( $hosting_service ) ) { $this->getContainer() ->share( $hosting_service, ( new HostSubscriberFactory() )->get_subscriber() ) ->addTag( 'hosting_subscriber' ); } } }