approval-after-edit/extend.php

25 lines
548 B
PHP
Raw Normal View History

2025-09-20 00:20:14 +08:00
<?php
/*
* This file is part of klxf/approval-after-edit.
*
* Copyright (c) 2025 Fang_Zhijian.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Klxf\ApprovalAfterEdit;
use Flarum\Extend;
use Flarum\Post\Event\Saving;
return [
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
new Extend\Locales(__DIR__.'/locale'),
(new Extend\Event)
->listen(Saving::class, Listeners\UnapproveNewPosts::class),
];