Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extension- or plug-in mechanism to register new installer types #153

Closed
pschulz opened this issue May 22, 2014 · 2 comments
Closed

Add extension- or plug-in mechanism to register new installer types #153

pschulz opened this issue May 22, 2014 · 2 comments

Comments

@pschulz
Copy link

pschulz commented May 22, 2014

It would be nice to write additional (may be proprietary) installers, that can reuse the existing functionality of this project.
Wouldn't it be nice to add installers just by writing a new class that extends the BaseInstaller and defines the $locations array without the need to modify Composer\Installers\Installer::$supported types?

@davidbarratt
Copy link
Contributor

@pschulz,

Couldn't you just create a custom installer and extend whatever Composer Installer class you want?

Your custom Installer would just need to depend on composer/installers in your composer.json file.

Or are you thinking of something different?

@kwhat
Copy link

kwhat commented Sep 7, 2016

@davidbarratt the custom installer is exactly what I needed to accomplish the same thing. Thanks for the tip.

@alcohol alcohol closed this as completed Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants