mirror of
https://github.com/flarum/core.git
synced 2025-10-20 19:27:14 +02:00
Typehint container contract instead of application class.
This helps us in decoupling from Laravel, as we only need any implementation of the container contract now.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php namespace Flarum\Extend;
|
||||
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
|
||||
class Formatter implements ExtenderInterface
|
||||
{
|
||||
@@ -17,8 +17,8 @@ class Formatter implements ExtenderInterface
|
||||
$this->priority = $priority;
|
||||
}
|
||||
|
||||
public function extend(Application $app)
|
||||
public function extend(Container $container)
|
||||
{
|
||||
$app['flarum.formatter']->add($this->name, $this->class, $this->priority);
|
||||
$container->make('flarum.formatter')->add($this->name, $this->class, $this->priority);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user