1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 23:44:27 +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

@@ -15,7 +15,7 @@ use Flarum\Formatter\Event\Configuring;
use Illuminate\Contracts\Container\Container;
use Illuminate\Events\Dispatcher;
class FormatterConfiguration
class FormatterConfiguration implements Extender
{
protected $callback;