js(__DIR__.'/js/dist/forum.js') ->css(__DIR__.'/less/forum.less'), (new Extend\Frontend('admin')) ->js(__DIR__.'/js/dist/admin.js'), new Extend\Locales(__DIR__.'/locale'), (new Extend\Notification()) ->type(DiscussionLockedBlueprint::class, BasicDiscussionSerializer::class, ['alert']), function (Dispatcher $events) { $events->listen(ConfigureDiscussionGambits::class, function (ConfigureDiscussionGambits $event) { $event->gambits->add(LockedGambit::class); }); $events->listen(Serializing::class, Listener\AddDiscussionLockedAttributes::class); $events->listen(Saving::class, Listener\SaveLockedToDatabase::class); $events->listen(ConfigurePostTypes::class, function (ConfigurePostTypes $event) { $event->add(DiscussionLockedPost::class); }); $events->listen(DiscussionWasLocked::class, Listener\CreatePostWhenDiscussionIsLocked::class); $events->listen(DiscussionWasUnlocked::class, Listener\CreatePostWhenDiscussionIsUnlocked::class); $events->subscribe(Access\DiscussionPolicy::class); }, ];