Clean up post type API

This commit is contained in:
Toby Zerner
2015-05-05 14:28:40 +09:30
parent 701eb6c2dd
commit f2056c4acf
4 changed files with 20 additions and 7 deletions

View File

@ -113,8 +113,8 @@ class CoreServiceProvider extends ServiceProvider
public function registerPostTypes()
{
Post::addType('comment', 'Flarum\Core\Models\CommentPost');
Post::addType('discussionRenamed', 'Flarum\Core\Models\DiscussionRenamedPost');
Post::addType('Flarum\Core\Models\CommentPost');
Post::addType('Flarum\Core\Models\DiscussionRenamedPost');
CommentPost::setFormatter($this->app['flarum.formatter']);
}