Merge pull request #1693 from dzuelke/patch-1
Clarify custom installer names/interfacespull/1694/head
commit
7b549010d5
|
@ -55,10 +55,7 @@ package that has the [type][1] `composer-installer`.
|
||||||
A basic Installer would thus compose of two files:
|
A basic Installer would thus compose of two files:
|
||||||
|
|
||||||
1. the package file: composer.json
|
1. the package file: composer.json
|
||||||
2. The Installer class, i.e.: `Composer\Installer\MyInstaller.php`
|
2. The Installer class, e.g.: `My\Project\Composer\Installer.php`, containing a class that implements `Composer\Installer\InstallerInterface˚.
|
||||||
|
|
||||||
> **NOTE**: _The namespace does not need to be `Composer\Installer`, it must
|
|
||||||
> only implement the right interface._
|
|
||||||
|
|
||||||
### composer.json
|
### composer.json
|
||||||
|
|
||||||
|
@ -159,4 +156,4 @@ different installation path.
|
||||||
[1]: ../04-schema.md#type
|
[1]: ../04-schema.md#type
|
||||||
[2]: ../04-schema.md#extra
|
[2]: ../04-schema.md#extra
|
||||||
[3]: https://github.com/composer/composer/blob/master/src/Composer/Installer/InstallerInterface.php
|
[3]: https://github.com/composer/composer/blob/master/src/Composer/Installer/InstallerInterface.php
|
||||||
[4]: https://github.com/composer/composer/blob/master/src/Composer/Installer/LibraryInstaller.php
|
[4]: https://github.com/composer/composer/blob/master/src/Composer/Installer/LibraryInstaller.php
|
||||||
|
|
Loading…
Reference in New Issue