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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user