1
0
Fork 0

docs updated install package custom path

pull/8747/head
Tianni 2020-04-07 15:10:00 -04:00 committed by Jordi Boggiano
parent 11999118a5
commit a47f44bc61
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ the default `vendor` folder by using
If you are a **package author** and want your package installed to a custom
directory, simply require `composer/installers` and set the appropriate `type`.
Specifying the package type, will override the default installer path.
This is common if your package is intended for a specific framework such as
CakePHP, Drupal or WordPress. Here is an example composer.json file for a
WordPress theme:
@ -43,7 +44,8 @@ for a module that uses composer/installers:
```
Now the package would be installed to your folder location, rather than the default
composer/installers determined location.
composer/installers determined location. In addition, `installer-paths` is order-dependent, which means moving a package by name
should come before the installer path of a `type` that matches the same package.
> **Note:** You cannot use this to change the path of any package. This is only
> applicable to packages that require `composer/installers` and use a custom type