這里詳細(xì)描述問題
webman在config文件下的captcha.php里這樣寫
declare(strict_types=1);
use support\Container;
use think\facade\Cache;
return[
"option"=>Container::get(Cache::class),
];
然后就報(bào)錯(cuò)了,這怎么解決???
因?yàn)檩d入配置的時(shí)候Container還沒有初始化,所以是null。
謝謝,想問下:舊項(xiàng)目tp6里config下的captcha.php里用了return [ "option"=> app()->make(Cache::class) ] 我把舊項(xiàng)目改成webman的話,這塊怎么寫?。?/p>