From 9cfe9db3c503073ecd836a5e295bd1ef81d0ad55 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Thu, 16 Nov 2017 11:00:28 +0200 Subject: [PATCH 1/3] Added HTTPlug as the standard HTTP client --- php-http/httplug-pack/1.0/manifest.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 php-http/httplug-pack/1.0/manifest.json diff --git a/php-http/httplug-pack/1.0/manifest.json b/php-http/httplug-pack/1.0/manifest.json new file mode 100644 index 00000000..d555d7c6 --- /dev/null +++ b/php-http/httplug-pack/1.0/manifest.json @@ -0,0 +1,3 @@ +{ + "aliases": ["http", "http-client", "httplug"] +} From 51f254553b4c84536660738b66d687b903b08346 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Thu, 16 Nov 2017 11:02:51 +0200 Subject: [PATCH 2/3] Added HttplugBundle recipe from contrib. --- .../1.6/config/packages/httplug.yaml | 14 ++++++++++++++ php-http/httplug-bundle/1.6/manifest.json | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 php-http/httplug-bundle/1.6/config/packages/httplug.yaml create mode 100644 php-http/httplug-bundle/1.6/manifest.json diff --git a/php-http/httplug-bundle/1.6/config/packages/httplug.yaml b/php-http/httplug-bundle/1.6/config/packages/httplug.yaml new file mode 100644 index 00000000..ac36c0d6 --- /dev/null +++ b/php-http/httplug-bundle/1.6/config/packages/httplug.yaml @@ -0,0 +1,14 @@ +httplug: + plugins: + redirect: + preserve_header: true + + discovery: + client: 'auto' + + clients: + app: + http_methods_client: true + plugins: + - 'httplug.plugin.logger' + - 'httplug.plugin.redirect' diff --git a/php-http/httplug-bundle/1.6/manifest.json b/php-http/httplug-bundle/1.6/manifest.json new file mode 100644 index 00000000..2191bf6b --- /dev/null +++ b/php-http/httplug-bundle/1.6/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Http\\HttplugBundle\\HttplugBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From ea08350cce9d6a3d766c5dc206de2b39f05f658b Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Wed, 22 Nov 2017 08:36:28 +0100 Subject: [PATCH 3/3] Do not use logger --- php-http/httplug-bundle/1.6/config/packages/httplug.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-http/httplug-bundle/1.6/config/packages/httplug.yaml b/php-http/httplug-bundle/1.6/config/packages/httplug.yaml index ac36c0d6..2aadcd13 100644 --- a/php-http/httplug-bundle/1.6/config/packages/httplug.yaml +++ b/php-http/httplug-bundle/1.6/config/packages/httplug.yaml @@ -10,5 +10,5 @@ httplug: app: http_methods_client: true plugins: - - 'httplug.plugin.logger' + - 'httplug.plugin.content_length' - 'httplug.plugin.redirect'