flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.27k stars 826 forks source link

chore: merge the app with the container & implement the ApplicationContract #3862

Closed SychO9 closed 11 months ago

SychO9 commented 1 year ago

Changes proposed in this pull request: 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.

Reviewers should focus on: The application contract implementation was separated into a trait to reduce the bloat because all those methods we don't actually need/use, so it can serve as a readable way of telling.

Necessity

Confirmed