I have some legacy Symfony 1.4 projects which I’d like to enhance with a composer.json file for their dependencies.
I’ve managed to configure composer to use the “plugins” directory as opposed to “vendors”. However according to the Symfony 1.4 documentation, the library ideally should live in “lib/vendor” off of my project root.
If I were to configure a custom repository-package pointing to the latest 1.4.x svn in my composer.json, how would I get it so that it installs to “lib/vendor”?
In fact, this is not really a problem to have symfony outside
lib/vendor. It’s recommended to have it in this folder path because, that way, it will be automatically loaded.Using
vendor-dirin Composer, you can configure where to put your vendor library. But this is a configuration set as root-only, so it can’t be configured per require library (at least I think so).But you can put symfony in your
plugins/directory and then say to your app you want to autoload everything here, usingapps/frontend/config/autoload.yml:Do not forget to change the path in your
config/ProjectConfiguration.class.php:That should do the trick.