Closed (fixed)
Project:
Composer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 May 2012 at 18:14 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
patcon commentedWhat?! drush has hooks?? I had no idea. This is rocking my world.
I am so excited about EVERYTHING COMPOSER-RELATED!
Comment #2
patcon commentedI don't suppose you could explain more fully the limitation that you mentioned on IRC?
Comment #3
patcon commentedtagging.
EDIT: ha. oh. yeah -- composer issue queue. guess that's not too useful :/
Comment #4
robloachWhy not a composer tag for it, haha.
So, let's say you have
mymodule...mymodule/mymodule.module
mymodule/mymodule.info
mymodule/composer.json
When you run
cd sites/all/modules/mymodule && drush composer install, it will install the package, and give youmymodule/vendor/autoload.php. Out of the box, mymodule does not load autoload.php. Would be neat if it was handled for us somehow though. Maybe that's up to mymodule to figure out!Comment #5
Grayside commentedA heavier approach would be for this project (or a companion project) to come with an autoloader for the auto-loaders.
However, the idea I was originally brewing with #1586446: [META] Composer-Drush integration ideas was to find a way to centrally manage externally downloaded dependencies. If three modules all want to install tinymce, shouldn't we try to reuse the same code?
Comment #6
robloachCommitted, with some additional fixes. Does not conflict with #1586446: [META] Composer-Drush integration ideas at all, although it would help it! :-)
Comment #8
Grayside commentedThat looks really sweet.