createUri('/api/v4/')), // Make sure host is set to the right uri new AddHostPlugin($uriFactory->createUri($host), ['replace' => true]), ]; return new PluginClient($client, $plugins); } }