beforeactionlist php,报类型错误,请问是怎么回事呢?php7

类型错误: Argument 1 passed to think\Controller::__construct() must be an instance of think\App or null, instance of think\facade\Request given, called in /www/web/test_com/public_html/vendor/zz-studio/think-addons/src/addons/Controller.php on line 75

* 前置操作方法列表

* @var array $beforeActionList

*/

protected $beforeActionList = [];

/**

* 构造方法

* @access public

*/

public function __construct(App $app = null)

{

$this->app = $app ?: Container::get('app');

$this->request = $this->app['request'];

$this->view = $this->app['view'];

// 控制器初始化

$this->initialize();

// 前置操作方法

Call Stack

in Controller.php line 55

at Controller->__construct(object(Request)) in Controller.php line 75

at Controller->__construct(obj

你可能感兴趣的:(php)