So I'm currently playing about with Composer and Magento, and having a bit of trouble getting the magento-composer-installer
to play nice.
Firstly, my composer.json files!
Module:
{ "name":"namespace/module", "description":"Desc", "type": "magento-module", "suggest":{ "magento-hackathon/magento-composer-installer": "*" }, "extra":{ "map":[ [ "app/etc/modules/Namespace_Module.xml", "app/etc/modules/Namespace_Module.xml" ], [ "app/code/community/Namespace/Module/", "app/code/community/Namespace/Module/" ] ] } }
Project:
{ "require": { "magento/core":"1.9.1.0", "magento-hackathon/magento-composer-installer": "*", "namespace/module":"dev-master" }, "repositories": [ { "type": "composer", "url": "http://packages.firegento.com" }, { "type": "vcs", "url": "/home/luker/namespace/module" } ], "extra": { "magento-root-dir":"./", "magento-deploystrategy":"copy", "magento-force": true, "magento-deploy-sort-priority": { "namespace/module": "200" } } }
This setup does not work.
However, if I change the module to "require" magento-composer-installer
instead of "suggest" it, then it works and gets copied into the code base correctly.
After reading the docs, I know this is not the correct thing to do.
What have I missed?
(To be honest, not entirely sure what I'm achieving with my magento-force
and priority extras. I've just been hacking about)
Thanks
3.0
series is taking, have voiced my opinions here github.com/Cotya/magento-composer-installer/issues/…