mirror of
https://github.com/flarum/core.git
synced 2025-06-18 08:01:28 +02:00
Remove deprecated post types event
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
namespace Flarum\Post;
|
||||
|
||||
use DateTime;
|
||||
use Flarum\Event\ConfigurePostTypes;
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Flarum\Post\Access\ScopePostVisibility;
|
||||
|
||||
@ -61,11 +60,6 @@ class PostServiceProvider extends AbstractServiceProvider
|
||||
DiscussionRenamedPost::class
|
||||
];
|
||||
|
||||
// Deprecated in beta 15, remove in beta 16.
|
||||
$this->app->make('events')->dispatch(
|
||||
new ConfigurePostTypes($models)
|
||||
);
|
||||
|
||||
foreach ($models as $model) {
|
||||
Post::setModel($model::$type, $model);
|
||||
}
|
||||
|
Reference in New Issue
Block a user