这次我又来报bug了 而且我也看了github了

浏览:375 发布日期:2018/05/29 分类:ThinkPHP5专区
我在provider.php中注册了四个服务return [
    'auth'=>\app\common\service\Auth::class,
    'node'=>\app\common\service\Node::class,
    'tree'=>\app\common\service\Tree::class,
    'databackup'=>\app\common\service\Backup::class,
];
然后执行了php think optimize:config生成的init.php中出现了\think\Container::getInstance()->bind(array (
  'auth' => 'app\\common\\service\\Auth',
  'node' => 'app\\common\\service\\Node',
  'tree' => 'app\\common\\service\\Tree',
  'databackup' => 'app\\common\\service\\Backup',
));
结果报错[2] ErrorException in E:\WWW\newcou\liteadmin\thinkphp\library\think\route\dispatch\Module.php line 39
preg_match() expects parameter 2 to be string, array given
最佳答案
评论( 相关
后面还有条评论,点击查看>>