1
0
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:
Alexander Skvortsov
2021-01-19 19:10:43 -05:00
parent e2335e867d
commit a68e2b27a4
2 changed files with 0 additions and 34 deletions

View File

@ -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);
}