From 6fc1682a44c131cb89010df82ac67407cebaa7ff Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Fri, 12 May 2017 20:29:20 +0200 Subject: [PATCH 1/6] Added HTTPlug manifest --- .../1.5/etc/packages/httplug.yaml | 20 +++++++++++++++++++ php-http/httplug-bundle/1.5/manifest.json | 11 ++++++++++ 2 files changed, 31 insertions(+) create mode 100644 php-http/httplug-bundle/1.5/etc/packages/httplug.yaml create mode 100644 php-http/httplug-bundle/1.5/manifest.json diff --git a/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml new file mode 100644 index 00000000..e3ae3fb1 --- /dev/null +++ b/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml @@ -0,0 +1,20 @@ +#httplug: +# plugins: +# logger: +# enabled: true +# redirect: +# preserve_header: true +# +# discovery: +# client: 'auto' +# async_client: false +# +# clients: +# default: +# factory: 'httplug.factory.curl' +# acme: +# factory: 'httplug.factory.curl' +# http_methods_client: true +# plugins: +# - 'httplug.plugin.logger' +# - 'httplug.plugin.redirect' \ No newline at end of file diff --git a/php-http/httplug-bundle/1.5/manifest.json b/php-http/httplug-bundle/1.5/manifest.json new file mode 100644 index 00000000..cb82d27f --- /dev/null +++ b/php-http/httplug-bundle/1.5/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Http\\HttplugBundle\\HttplugBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + }, + "composer-scripts": { + "assets:install --symlink --relative %WEB_DIR%": "symfony-cmd" + } +} From a62b1cb80108f2dd2a58f46073be6e846fc427a0 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Fri, 12 May 2017 21:03:20 +0200 Subject: [PATCH 2/6] cs --- php-http/httplug-bundle/1.5/etc/packages/httplug.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml index e3ae3fb1..2d7e1223 100644 --- a/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml +++ b/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml @@ -17,4 +17,4 @@ # http_methods_client: true # plugins: # - 'httplug.plugin.logger' -# - 'httplug.plugin.redirect' \ No newline at end of file +# - 'httplug.plugin.redirect' From 66f72b9ac5bbcb81651d53ca2b89060e97f2c6a6 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 23 May 2017 12:11:14 +0200 Subject: [PATCH 3/6] Uncommented the config --- .../1.5/etc/packages/httplug.yaml | 20 ------------------- .../1.6/etc/packages/httplug.yaml | 16 +++++++++++++++ .../httplug-bundle/{1.5 => 1.6}/manifest.json | 3 --- 3 files changed, 16 insertions(+), 23 deletions(-) delete mode 100644 php-http/httplug-bundle/1.5/etc/packages/httplug.yaml create mode 100644 php-http/httplug-bundle/1.6/etc/packages/httplug.yaml rename php-http/httplug-bundle/{1.5 => 1.6}/manifest.json (57%) diff --git a/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml deleted file mode 100644 index 2d7e1223..00000000 --- a/php-http/httplug-bundle/1.5/etc/packages/httplug.yaml +++ /dev/null @@ -1,20 +0,0 @@ -#httplug: -# plugins: -# logger: -# enabled: true -# redirect: -# preserve_header: true -# -# discovery: -# client: 'auto' -# async_client: false -# -# clients: -# default: -# factory: 'httplug.factory.curl' -# acme: -# factory: 'httplug.factory.curl' -# http_methods_client: true -# plugins: -# - 'httplug.plugin.logger' -# - 'httplug.plugin.redirect' diff --git a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml new file mode 100644 index 00000000..ded13eca --- /dev/null +++ b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml @@ -0,0 +1,16 @@ +httplug: + plugins: + logger: + enabled: true + redirect: + preserve_header: true + + discovery: + client: 'auto' + + clients: + acme: + http_methods_client: true + plugins: + - 'httplug.plugin.logger' + - 'httplug.plugin.redirect' diff --git a/php-http/httplug-bundle/1.5/manifest.json b/php-http/httplug-bundle/1.6/manifest.json similarity index 57% rename from php-http/httplug-bundle/1.5/manifest.json rename to php-http/httplug-bundle/1.6/manifest.json index cb82d27f..4fddef62 100644 --- a/php-http/httplug-bundle/1.5/manifest.json +++ b/php-http/httplug-bundle/1.6/manifest.json @@ -4,8 +4,5 @@ }, "copy-from-recipe": { "etc/": "%ETC_DIR%/" - }, - "composer-scripts": { - "assets:install --symlink --relative %WEB_DIR%": "symfony-cmd" } } From a588b3c2a3968d644949eb0368bc62dd5f136f10 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 23 May 2017 12:30:37 +0200 Subject: [PATCH 4/6] Added %kernel.debug% --- php-http/httplug-bundle/1.6/etc/packages/httplug.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml index ded13eca..3a6486c2 100644 --- a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml +++ b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml @@ -3,7 +3,7 @@ httplug: logger: enabled: true redirect: - preserve_header: true + preserve_header: '%kernel.debug%' # Set to true if you want enable logging in production discovery: client: 'auto' From ddf22c7e3f6562f10bf9789968df0c5b3eab7c81 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 23 May 2017 12:53:55 +0200 Subject: [PATCH 5/6] Typo --- php-http/httplug-bundle/1.6/etc/packages/httplug.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml index 3a6486c2..6ecb3f72 100644 --- a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml +++ b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml @@ -1,9 +1,9 @@ httplug: plugins: logger: - enabled: true + enabled: '%kernel.debug%' # Set to true if you want enable logging in production redirect: - preserve_header: '%kernel.debug%' # Set to true if you want enable logging in production + preserve_header: true discovery: client: 'auto' From c718f16007c63ad8782c52a530618151f6b77332 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 23 May 2017 13:00:38 +0200 Subject: [PATCH 6/6] renamed "acme" to "app" --- php-http/httplug-bundle/1.6/etc/packages/httplug.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml index 6ecb3f72..319e8ece 100644 --- a/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml +++ b/php-http/httplug-bundle/1.6/etc/packages/httplug.yaml @@ -9,7 +9,7 @@ httplug: client: 'auto' clients: - acme: + app: http_methods_client: true plugins: - 'httplug.plugin.logger'