【发布时间】:2016-12-16 06:33:37
【问题描述】:
我刚刚在 app\common\config\main.php 中添加了这段代码
<?php
return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
],
'modules' => [
//...
'gii1' => [
'class' => 'yii\gii\Module',
'generators' => [
'mongoDbModel' => [
'class' => 'yii\mongodb\gii\model\Generator'
]
],
],
],
];
但是当我运行 php composer.phar 时需要 --prefer-dist yiisoft/yii2-mongodb 结果是这样的
我该怎么办?
【问题讨论】:
标签: mysql mongodb yii2 generator gii