A
A
Artur Fazylov2019-02-20 14:13:48
Yii
Artur Fazylov, 2019-02-20 14:13:48

Why are plug-in extensions not loading?

It was necessary to transfer the modules (one of them is https://github.com/dvizh/yii2-cart)
from the vendor folder to the common/modules folder.
This action was guided by the instructions
https://ru.stackoverflow.com/questions/784561/ How-...
I connected everything, when I entered composer update, all extensions associated with these modules
5c6d337566b05714649520.png
were deleted. Now they are missing and how can I properly connect, load?
I thought that autoload would automatically include dependencies and when updating everything would load again, but no.

"autoload": {
    	"psr-4": {
            "dvizh\\cart\\": "common/modules/dvizh/yii2-cart",
            "dvizh\\order\\": "common/modules/dvizh/yii2-order",

So far, I see only one way out - to collect the necessary repositories from these modules and insert them into the main composer.json
. Any other solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2019-02-20
@MArtyy

composer dump-autoload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question