From 759d79977b13a3356d7cfe851ed33106f897bba6 Mon Sep 17 00:00:00 2001 From: Zoltan Szabo Date: Mon, 15 Oct 2018 10:30:00 +0300 Subject: [PATCH] Package should require `composer/installers` From Composer's documentation (https://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md#how-do-i-install-a-package-to-a-custom-path-for-my-framework-): > If you are a package author and want your package installed to a custom directory, simply require `composer/installers` and set the appropriate `type`. --- composer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8e3a82b..9849c77 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,8 @@ { "name" : "wp-api/basic-auth", "description" : "Basic Authentication handler for the JSON API, used for development and debugging purposes", - "type" : "wordpress-plugin" + "type" : "wordpress-plugin", + "require": { + "composer/installers": "~1.0" + } }