Coder Social home page Coder Social logo

Comments (5)

imanghafoori1 avatar imanghafoori1 commented on June 7, 2024 1

ok I fix it in the patch release.

from laravel-smart-facades.

imanghafoori1 avatar imanghafoori1 commented on June 7, 2024

You should call clearResolvedInstance method on the facade if you want to swap it after you have called it once.

from laravel-smart-facades.

iransoftnet1 avatar iransoftnet1 commented on June 7, 2024

The previous changes were removed and replaced by the clearResolvedInstance method.
Now the tests have passed and the above problem has been solved.
Do you think there is no problem now?
View this commit

from laravel-smart-facades.

imanghafoori1 avatar imanghafoori1 commented on June 7, 2024

The smart facades are not used in that way in real applications.
We do the driver overrides in the boot phase and start to call the facade methods in controllers and etc.
So that is not really needed in practice. but ok, you can create a PR for that.

from laravel-smart-facades.

iransoftnet1 avatar iransoftnet1 commented on June 7, 2024

So that is not really needed in practice

Why have I noticed such a problem? What am I actually doing?
My whole system works with command. Each command proxies the system according to the parameters sent to it. So far everything went great.
Now suppose a command is to be executed in a loop, the first time it is executed correctly, the second time it is not.
In fact, it was not possible to proxy in boot because it had to be proxyed according to the parameters received in the command.

Thank you for solving this problem, the project was really involved in this issue๐ŸŒน๐ŸŒน

from laravel-smart-facades.

Related Issues (3)

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.