1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 18:26:07 +02:00

Re-introduce Compat extender

Turns out Container::call() does not work with invokable classes.
Thus, we need to wrap callables in a custom extender class to
support injecting any resolvable type-hint automatically.

Refs #851.
This commit is contained in:
Franz Liedke
2018-01-10 19:32:57 +01:00
parent 1c1cefa017
commit 0af97c427c
7 changed files with 70 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ use Flarum\Locale\LocaleManager;
use Illuminate\Contracts\Container\Container;
use RuntimeException;
class Locale
class Locale implements Extender
{
protected $directory;