diff --git a/www/index-test.php b/www/index-test.php index 4a00b37..c744dc7 100644 --- a/www/index-test.php +++ b/www/index-test.php @@ -10,6 +10,7 @@ defined('YII_ENV') or define('YII_ENV', 'test'); require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); require_once(__DIR__ . '/../vendor/autoload.php'); +require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'); $config = require(__DIR__ . '/../config/web-test.php'); diff --git a/www/index.php b/www/index.php index 9bc1565..fc78e6b 100644 --- a/www/index.php +++ b/www/index.php @@ -6,6 +6,7 @@ defined('YII_ENV') or define('YII_ENV', 'dev'); require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); require(__DIR__ . '/../vendor/autoload.php'); +require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'); $config = require(__DIR__ . '/../config/web.php'); diff --git a/yii b/yii index c874ce0..5762bb7 100755 --- a/yii +++ b/yii @@ -15,6 +15,7 @@ defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); require(__DIR__ . '/vendor/yiisoft/yii2/yii/Yii.php'); require(__DIR__ . '/vendor/autoload.php'); +require(__DIR__ . '/vendor/composer/autoload_namespaces.php'); $config = require(__DIR__ . '/config/console.php');