GithubHelp home page GithubHelp logo

yii 2.0.13 has erros!~ about yii2-oauth2-server HOT 7 CLOSED

seakk avatar seakk commented on August 15, 2024
yii 2.0.13 has erros!~

from yii2-oauth2-server.

Comments (7)

marty-macfly avatar marty-macfly commented on August 15, 2024 7

Those errors are coming from that change in 2.0.13 :

Behavior was changed for methods yii\base\Module::get() and yii\base\Module::has() so in case when the requested component was not found in the current module, the parent ones will be checked for this component hierarchically. Considering that the root parent module is usually an application, this change can reduce calls to global Yii::$app->get(), and replace them with module-scope calls to get(), making code more reliable and easier to test. However, this change may affect your application if you have code that uses method yii\base\Module::has() in order to check existence of the component exactly in this specific module. In this case make sure the logic is not corrupted.

I've fixed it with the following code: https://github.com/Filsh/yii2-oauth2-server/compare/e05fff97252f9e067cf0eae276ea36e9e87ae3e2...Marty-Macfly:2.0.2?diff=unified&name=2.0.2

from yii2-oauth2-server.

Cuihongsen avatar Cuihongsen commented on August 15, 2024

Same problem that i also encountered

from yii2-oauth2-server.

seakk avatar seakk commented on August 15, 2024

@marty-macfly thanks!

from yii2-oauth2-server.

Cuihongsen avatar Cuihongsen commented on August 15, 2024

@filsh I hope you can fix this bug in the next version

from yii2-oauth2-server.

cheeseq avatar cheeseq commented on August 15, 2024

@marty-macfly thank you. If someone need it, i merged 2.0.1 branch with this Yii 2.0.13 fixes in my fork https://github.com/cheeseq/yii2-oauth2-server

from yii2-oauth2-server.

mtangoo avatar mtangoo commented on August 15, 2024

https://github.com/hosannahighertech/yii2-oauth2-server

from yii2-oauth2-server.

luciomr avatar luciomr commented on August 15, 2024

This might be related to this other issue: #132
Another user posted a fix there which worked for me.

from yii2-oauth2-server.

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.