Welcome Guest, Not a member yet? Register   Sign In
What is the right place for the vendor folder created by composer
#2

If you set CI3's 'composer_autoload' config value to TRUE, it will look for /application/vendor/autoload.php. However, you can choose to set it to a string containing the path to your autoloader, so your directory structure would work as well if you set the value to either the absolute path or '../vendor/autoload.php'.

Of course, if you're using another method to load the Composer autoloader, it won't really matter.

The /application/third_party/ directory is often used by developers who wish to distribute their code/packages for use by other developers. Then the code supplied by those developers is in a location somewhat isolated from your application.
Reply


Messages In This Thread
RE: What is the right place for the vendor folder created by composer - by mwhitney - 05-29-2015, 07:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB