25 lines
548 B
PHP
25 lines
548 B
PHP
<?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),
|
|
];
|