CodeIgniter Forums
Composer default directory inconsistency - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: Composer default directory inconsistency (/showthread.php?tid=64141)



Composer default directory inconsistency - Lechu - 01-19-2016

In config/config.php if we enable Composer by setting TRUE, CI will be looking for composer default directory in root_catalog/application/vendor.
But the default Composer catalog is root_catalog/vendor because composer.json is in root_catalog.
I suggest to add this in Composer.json:
"config": {
  "vendor-dir": "application/vendor"
},



RE: Composer default directory inconsistency - ciadmin - 01-19-2016

The composer.json in CodeIgniter is used for testing, and is not meant for deployment. You need to make your own for that purpose, IIRC. It might be an idea to remove the composer.json from the release package ... I'll check with Narf.


RE: Composer default directory inconsistency - Narf - 01-20-2016

The packaged composer.json is for CodeIgniter itself, not for your application. It would've even been excluded from releases if it wasn't required for indexing on Packagist.