Not instantiable – yii\di\NotInstantiableException
Failed to instantiate component or class "yii\debug\Module".
↵
Caused by: ReflectionException
Class yii\debug\Module does not exist
in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/di/Container.php at line 508
1. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/di/Container.phpat line 510
501502503504505506507508509510511512513514515516517518519 {
if (isset($this->_reflections[$class])) {
return [$this->_reflections[$class], $this->_dependencies[$class]];
}
$dependencies = [];
try {
$reflection = new ReflectionClass($class);
} catch (\ReflectionException $e) {
throw new NotInstantiableException(
$class,
'Failed to instantiate component or class "' . $class . '".',
0,
$e
);
}
$constructor = $reflection->getConstructor();
if ($constructor !== null) {
2. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/di/Container.php at line 386– yii\di\Container::getDependencies('yii\debug\Module')
3. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/di/Container.php at line 171– yii\di\Container::build('yii\debug\Module', ['debug', yii\web\Application], [])
4. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/BaseYii.php at line 365– yii\di\Container::get('yii\debug\Module', ['debug', yii\web\Application], [])
5. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/base/Module.php at line 427– yii\BaseYii::createObject([], ['debug', yii\web\Application])
6. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/base/Application.php at line 321– yii\base\Module::getModule('debug')
7. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/web/Application.php at line 70– yii\base\Application::bootstrap()
8. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/base/Application.php at line 279– yii\web\Application::bootstrap()
9. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/base/BaseObject.php at line 109– yii\base\Application::init()
10. in /home/r/reanoff/reanoff.beget.tech/public_html/vendor/yiisoft/yii2/base/Application.php at line 212– yii\base\BaseObject::__construct(['id' => 'basic', 'bootstrap' => ['log', 'debug', 'gii'], 'aliases' => ['@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset'], 'components' => ['request' => ['cookieValidationKey' => 'dsfgsdfg', 'class' => 'yii\web\Request'], 'cache' => ['class' => 'yii\caching\FileCache'], 'user' => ['identityClass' => 'app\models\User', 'enableAutoLogin' => true, 'class' => 'yii\web\User'], 'mailer' => ['class' => 'yii\swiftmailer\Mailer', 'useFileTransport' => true], ...], ...])
11. in /home/r/reanoff/reanoff.beget.tech/public_html/index.php at line 12– yii\base\Application::__construct(['id' => 'basic', 'bootstrap' => ['log', 'debug', 'gii'], 'aliases' => ['@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset'], 'components' => ['request' => ['cookieValidationKey' => 'dsfgsdfg', 'class' => 'yii\web\Request'], 'cache' => ['class' => 'yii\caching\FileCache'], 'user' => ['identityClass' => 'app\models\User', 'enableAutoLogin' => true, 'class' => 'yii\web\User'], 'mailer' => ['class' => 'yii\swiftmailer\Mailer', 'useFileTransport' => true], ...], ...])
6789101112
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
$config = require __DIR__ . '/config/web.php';
(new yii\web\Application($config))->run();