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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user