Answer the question
In order to leave comments, you need to log in
Add class to composer autoload?
Good afternoon, I can’t load the package on the server through the composer (it kills the task, there is not enough memory).
1. Therefore, I downloaded composer.json and requested the package locally ( composer require...
), it downloaded, but something went wrong and autoload was not updated.
2. I upload the folder from vendor to the hosting
3. I do composer dump-autoload --optimize
As a result, the autoload was not updated, the class was not found, and remained
. Please tell me, how else can I manually download the package and update the autoload?
Answer the question
In order to leave comments, you need to log in
Understood.
In general, in the project (it can be at least empty), we do
Next, we transfer the required package from the vendor, and in the vendor / composer we look for everything related to the package, insert all the entries into the working vendor / composer and that's it.
Crutch, but sometimes it's just a necessity
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question