mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
fixed container bindings use of container (#2807)
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Flarum\Extension;
|
||||
|
||||
use Flarum\Extension\Event\Disabling;
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class ExtensionServiceProvider extends AbstractServiceProvider
|
||||
{
|
||||
@@ -34,9 +35,9 @@ class ExtensionServiceProvider extends AbstractServiceProvider
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function boot()
|
||||
public function boot(Dispatcher $events)
|
||||
{
|
||||
$this->container->make('events')->listen(
|
||||
$events->listen(
|
||||
Disabling::class,
|
||||
DefaultLanguagePackGuard::class
|
||||
);
|
||||
|
Reference in New Issue
Block a user