我正在使用Lumen 5.6。当我通过Postman运行任何命令或访问任何函数时,我收到以下错误:
Class 'App\Providers\AnnotationConfiguration' not found当我在AspectServiceProvider.php中添加这个use Ytake\LaravelAspect\AnnotationConfiguration时,上面的问题得到了解决,但现在我得到了这个错误。
Type error: Argument 1 passed to Ytake\LaravelAspect\AnnotationConfiguration::__construct() must be of the type array, null given, called in C:\Projects\cs415_api\app\Providers\AspectServiceProvider.php on line 22我怀疑AspectServiceProvider中的以下行返回null。
$app['config']->get('ytake-laravel-aop.annotation')对如何解决这个错误有什么想法吗?
发布于 2018-05-10 06:58:08
https://stackoverflow.com/questions/50249708
复制相似问题