S
S
Sergey Beloventsev2018-02-02 13:58:22
Yii
Sergey Beloventsev, 2018-02-02 13:58:22

How to remove gii?

I'm trying to deploy to heroku but the migration fails with an error

Exception 'ReflectionException' with message 'Class yii\gii\Module does not exist'

here is a suggestion to remove gii and debug from composer, i did it, i updated the composter. But the error has not gone away, do you have any other thoughts on what can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-02-02
@Sergalas

It is necessary not to delete (this is equivalent to the fact that they are in the require-dev section) - because then again gii and debug will not stand up and the class will not be found either, which means we need to move them to the require section in the composer.json file
Instructions from the Yii2 developer
Or option 2, as OKyJIucT noted - you need to remove the code using these classes in the project code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question