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 最佳答案