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

Use class constant to get qualified class names

This commit is contained in:
Franz Liedke
2018-12-14 01:47:54 +01:00
parent 5c9fa4c62d
commit 3e0cd3a21f
6 changed files with 44 additions and 26 deletions

View File

@@ -26,14 +26,14 @@ class PostServiceProvider extends AbstractServiceProvider
$this->registerPostTypes();
$events = $this->app->make('events');
$events->subscribe('Flarum\Post\PostPolicy');
$events->subscribe(PostPolicy::class);
}
public function registerPostTypes()
{
$models = [
'Flarum\Post\CommentPost',
'Flarum\Post\DiscussionRenamedPost'
CommentPost::class,
DiscussionRenamedPost::class
];
$this->app->make('events')->fire(