1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 08:41:17 +02:00

Split up Application and Container

- Stop trying to implement Laravel's Application contract, which
  has no value for us.
- Stop inheriting from the Container, injecting one works equally
  well and does not clutter up the interfaces.
- Inject the Paths collection instead of unwrapping it again, for
  better encapsulation.

This brings us one step closer toward upgrading our Laravel
components (#2055), because we no longer need to adopt the changes
to the Application contract.
This commit is contained in:
Franz Liedke
2020-05-01 09:53:55 +00:00
parent 7602b9ad62
commit bf526125eb
16 changed files with 110 additions and 453 deletions

View File

@@ -73,6 +73,8 @@ class Server
Flarum encountered a boot error ($type)<br />
<b>$message</b><br />
thrown in <b>$file</b> on line <b>$line</b>
<pre>$error</pre>
ERROR;
}
}

View File

@@ -18,6 +18,11 @@ class UrlGenerator
*/
protected $routes = [];
/**
* @var Application
*/
protected $app;
/**
* @param Application $app
*/