-
-
Couldn't load subscription status.
- Fork 859
proof of concept illuminate http #3865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ntract Illuminate components always expect the app to be the container, but also expect the app to be implementing the laravel app contract. This means that very often between minor illuminate updates we get a call to a method on the app that doesn't exist in the Flarum app. This fixes the issue once and for all.
|
There is a PSR-7 middleware abstraction, but it's not ideal. https://github.com/jshannon63/psr7middleware but that's the only "potential workaround for a NO item". |
|
@SychO9 I am assuming this is off the table for now and when we revisit this, it needs to be based off of |
|
Yes, unfortunately there wasn't enough input to determine if this was a route we would want to go. This can be used as a reference for potential future efforts however. Though like I have expressed before, I do believe that eventually we should consider the feasibility of moving into a complete Laravel application. |
I completely agree and this should be our aim for 3.x honestly. |
I've stopped here where we have successful tests and a mostly working app.
What is left
Nice to have
Chores
Architectural changes
Here is a diagram that explains how this changes the base architecture
Review
To make it easier reviewing the changes, here is what you should look at and ignore
Ignore: All Tests changes
Focus On: Application, SiteInterface, Server, Middlewares, Controllers, Router, RequestUtil, ExceptionHandler, HandleErrors, UrlGenerator, routes.php files. Service Providers (Forum, Admin, API).
Do we want these changes
The case for no
The case for Yes