Skip to content

Commit

Permalink
Add font color configuration for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Liebert committed Jun 1, 2023
1 parent b24947f commit b8192ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@
use Askvortsov\FlarumCategories\Content\Categories;
use Flarum\Api\Serializer\BasicUserSerializer;
use Flarum\Extend;
use Flarum\Extend\ApiSerializer;
use Flarum\Extend\Event;
use Flarum\Post\Event\Hidden;
use Flarum\Post\Event\Posted;
use Flarum\Post\Event\Restored;
use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\Tags\Api\Controller\ListTagsController;
use Flarum\Tags\Api\Serializer\TagSerializer;
use Flarum\Tags\Event\Creating;
use Flarum\Tags\Event\Saving;
use Askvortsov\FlarumCategories\Attributes\TagAttributes;
use Askvortsov\FlarumCategories\Listeners\CreateTagAttributes;
use Askvortsov\FlarumCategories\Listeners\SaveTagAttributes;

return [
(new Extend\Frontend('forum'))
Expand Down Expand Up @@ -79,4 +86,8 @@
->listen(Restored::class, function (Restored $event) {
Util::updateTagsPostCount($event->post, 1);
}),

(new ApiSerializer(TagSerializer::class))->attributes(TagAttributes::class),
(new Event())->listen(Saving::class, SaveTagAttributes::class),
(new Event())->listen(Creating::class, CreateTagAttributes::class),
];

0 comments on commit b8192ce

Please sign in to comment.