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:
@@ -16,7 +16,7 @@ use Flarum\Locale\LocaleManager;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
use RuntimeException;
|
||||
|
||||
class Locale
|
||||
class Locale implements Extender
|
||||
{
|
||||
protected $directory;
|
||||
|
||||
|
Reference in New Issue
Block a user