'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'logout' => ['post', 'get'], //表示logout可以同时通过post和get方式访问 ],],