Giter Site home page Giter Site logo

Declaration of api\components\filters\OAuth2AccessFilter::beforeAction() should be compatible with yii\base\ActionFilter::beforeAction($action) about yii2-oauth2-rest-template HOT 3 CLOSED

elim051 avatar elim051 commented on August 25, 2024
Declaration of api\components\filters\OAuth2AccessFilter::beforeAction() should be compatible with yii\base\ActionFilter::beforeAction($action)

from yii2-oauth2-rest-template.

Comments (3)

elim051 avatar elim051 commented on August 25, 2024

unnamed qq screenshot20150608181920

from yii2-oauth2-rest-template.

ikaras avatar ikaras commented on August 25, 2024

Hi. Thanks for your issue!
Strange, I haven't this problem. Seems like you has different interfaces of methods OAuth2AccessFilter::beforeAction() and ActionFilter::beforeAction. Please, double check if you has the latest code of OAuth2AccessFilter (take a look, please, on it declaration and count of parameters).

If it the same, try to remove type Action of $action parameter (in OAuth2AccessFilter) by following way:
was: public function beforeAction(Action $action)
should be: public function beforeAction(Action $action)
If the problem in it - I will make commit to fix it

from yii2-oauth2-rest-template.

elim051 avatar elim051 commented on August 25, 2024

oh, yes, I try to remove type Action in the code of OAuth2AccessFilter
public function beforeAction($action). All is OK, Thanks for your help.

from yii2-oauth2-rest-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.