protected function registerHttplugFactories()
    {
        $this->app->bind('httplug.message_factory.default', function ($app) {
            return MessageFactoryDiscovery::find();
        });
        $this->app->alias('httplug.message_factory.default', MessageFactory::class);
        $this->app->alias('httplug.message_factory.default', ResponseFactory::class);

        $this->app->bind('httplug.uri_factory.default', function ($app) {
            return UriFactoryDiscovery::find();
        });
        $this->app->alias('httplug.uri_factory.default', UriFactory::class);

        $this->app->bind('httplug.stream_factory.default', function ($app) {
            return StreamFactoryDiscovery::find();
        });
        $this->app->alias('httplug.stream_factory.default', StreamFactory::class);
    }