I have moved my Yii Application to Production Environment
It is built using 2amigos Template with ConfigKit and Usuario and on DEV works perfect but as soon as I have gone live I get an error:
ReflectionException: Class DaUserBootstrap does not exist in /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php:508
Stack trace:
#0 /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php(508): ReflectionClass->__construct('Da\User\Bootstr...')
#1 /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php(386): yiidiContainer->getDependencies('Da\User\Bootstr...')
#2 /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php(171): yiidiContainer->build('Da\User\Bootstr...', Array, Array)
#3 ~~~~~~~~~~~~~~~~~~
#9 /homepages/21/d800176243/htdocs/twopointsix/bootstrap/web.php(18): yiiaseApplication->__construct(Array)
#10 /homepages/21/d800176243/htdocs/twopointsix/public/index.php(46): require('/homepages/21/d...')
#11 {main}
Next yiidiNotInstantiableException: Failed to instantiate component or class "DaUserBootstrap". in /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php:510
Stack trace:
#0 /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php(386): yiidiContainer->getDependencies('Da\User\Bootstr...')
#1 /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/di/Container.php(171): yiidiContainer->build('Da\User\Bootstr...', Array, Array)
#2 /homepages/21/d800176243/htdocs/twopointsix/vendor/yiisoft/yii2/BaseYii.php(345): yiidiContainer->get('Da\User\Bootstr...', Array)
#3 ~~~~~~~~~~~~
#8 /homepages/21/d800176243/htdocs/twopointsix/bootstrap/web.php(18): yiiaseApplication->__construct(Array)
#9 /homepages/21/d800176243/htdocs/twopointsix/public/index.php(46): require('/homepages/21/d...')
#10 {main}
Any help on what may be causing this or where to look for the error?
EDIT:
First Config File:
use SideKitConfigConfigKit;
return [
*
* Base class for all application classes. Here we configure the attributes
* that do not hold any object configuration such as "components" or
* "modules". The configuration of those properties are within submodules of the same name.
*/
'id' => 'Two Point Six',
'name' => 'Two Point Six',
'basePath' => ConfigKit::config()->getBasePath(),
'vendorPath' => ConfigKit::config()->getVendorPath(),
'runtimePath' => ConfigKit::config()->getRuntimePath(),
'language' => ConfigKit::env()->get('APP_LANGUAGE'),
'bootstrap' => ['log'],
];
User Module Code:
<?php
return [
* Dos Amigos User Module
'''''
'class' => 'DaUserModule',
'enableRegistration' => true,
'administratorPermissionName' => 'administrator',
'enableGdprCompliance' => true,
'mailParams' => ['fromEmail' => '[email protected]'],
'classMap' => [
~~~~~~~~~
],
'controllerMap' => [
~~~~~~~~
],
],
];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…