1
0
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:
Franz Liedke
2015-06-03 03:05:10 +02:00
parent c616cd811b
commit 7b45ca3a78
13 changed files with 32 additions and 34 deletions

View File

@@ -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);
}
}