-
Notifications
You must be signed in to change notification settings - Fork 39
re() doesn't reload observers code #50
Comments
Are you on version 2.1.6? Where is your observer class located and is it autoloaded? I have noted the following in my current application:
Feels like it might be the same error we are experiencing? Can you confirm by adding a static to User.php and modify it between re()-calls?
|
Yes, I'm in version 2.1.6. My observer is in App/Observers it is called by ObserverProvider, this provider is in the default App/Providers folder and it is registered in config/app.php along with the other providers. |
Hi @anderson-flores, I've just spent a bit of time looking into this. It seems like classes used in service providers don't reload changes properly on I'm guessing this has something to do with class autoloading and where these classes are first defined in an application's running order relative to Tinx's reload functionality… but I'm not sure. For example, if your I'm not sure how to fix the issue, but am documenting my findings here in case it prompts any ideas or suggestions from any other users. Cheers. |
I have this problem with my php@7.1. |
⛔️ Closing open issues and pull requests as the project is now archived. |
Hello,
First of all, I'm loving tinx!
But now comes the problem, I'm developing an observer and I'm testing it on tinx, it happens that when I change something in observer and I use the re();
My change does not happen in tinx, I need to give an exit and run it all over again to make it work :(
Is there any limitation for observers?
Thank you.
The text was updated successfully, but these errors were encountered: