<?php
declare(strict_types=1);

/**
 * Plugin Name: Hello World
 * Description: A sample starter plugin demonstrating hook listeners in Quaeriva.
 * Version: 1.0.0
 * Author: Quaeriva Team
 */

use App\Support\Hooks;

return [
    'name' => 'Hello World',
    'version' => '1.0.0',
    'author' => 'Quaeriva Team',
    'description' => 'A sample starter plugin demonstrating hook listeners in Quaeriva.',
    'register' => static function (): void {
        Hooks::on('user.registered', static function (array $payload): void {
            // Hook listener for new user registrations
        });

        Hooks::on('question.published', static function (array $payload): void {
            // Hook listener for newly published questions
        });
    },
];
