1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 18:26:07 +02:00

fixed container bindings use of container (#2807)

This commit is contained in:
Daniël Klabbers
2021-04-29 21:33:51 +02:00
committed by GitHub
parent 40b47de9e1
commit fcb5778705
23 changed files with 246 additions and 245 deletions

View File

@@ -10,6 +10,7 @@
namespace Flarum\Post;
use DateTime;
use Flarum\Formatter\Formatter;
use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\RequestUtil;
use Flarum\Post\Access\ScopePostVisibility;
@@ -42,12 +43,9 @@ class PostServiceProvider extends AbstractServiceProvider
});
}
/**
* {@inheritdoc}
*/
public function boot()
public function boot(Formatter $formatter)
{
CommentPost::setFormatter($this->container->make('flarum.formatter'));
CommentPost::setFormatter($formatter);
$this->setPostTypes();