my extend.php is
use Mysite\Test\Listener\AddUserWeb3AddressAttribute;
use Mysite\Test\Listener\SaveUserWeb3Address;
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
(new Extend\Event())
->listen(Serializing::class, AddUserWeb3AddressAttribute::class)
->listen(Saving::class, Listener\SaveUserWeb3Address::class),
];
SaveUserWeb3Address.php file
<?php
namespace Mysite\Test\Listener;
use Flarum\Foundation\ValidationException;
use Flarum\User\Event\Saving;
//use Illuminate\Support\Arr;
class SaveUserWeb3Address
{
public function handle(Saving $event)
{
echo "hello";
}
}
when I click on save change button, it shows
flarum.ERROR: ReflectionException: Class "Mysite\Test\Listener\SaveUserWeb3Address" does not exist in /var/www/test/vendor/illuminate/container/Container.php:877