Bypass Package Management - Still use Autoloading #10782
-
Hi all, I have this annoying restriction that has been put on our codebase that prevents us from using I was wondering if there's a way to use composer's great autoloading feature without using composer to pull in the packages. So to demonstrate:
Is it at all possible to do this? Currently I'm working on a project that is rather large and internally they use composer for their deps. Now to extend their codebase with my specific deps ON TOP of what they have, ideally I would just add some composer require statements and be done, HOWEVER (here's the fun part...) I have currently requested access or some sort of solution to allow customisations with composer, but in the meantime, I have my project that has some custom composer requirements that I can't load, due to composer install/update failing. What would be the "best" way to get around this issue and allow for my classes to load. I would really like to not have to manually add requires/includes to all the scripts in my project that reference the dependencies (like we did before autoloading) If any one has any suggestions or my situation is unclear, please get in touch :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Knowing how well composer's been built, there probably isa CLI command that does exactly that, and I've just missed it in the list of commands. I'll check again |
Beta Was this translation helpful? Give feedback.
-
I think one good workaround could be to copy the files that are currently only accessible from the proxy, to a place locally and use composer to pull them in using the "files" method |
Beta Was this translation helpful? Give feedback.
I think one good workaround could be to copy the files that are currently only accessible from the proxy, to a place locally and use composer to pull them in using the "files" method