<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

/**
 * Event observers for local_kid.
 *
 * Every entry names a concrete `local_kid\event\*` class — deliberately
 * never `\core\event\base` — so `journal_service::observe()` only ever
 * fires for this plugin's own events, not for every event on the Moodle
 * instance (logins, course views, etc.). Any new traceable action must add
 * its own event class here explicitly rather than widening this list.
 *
 * @package local_kid
 */

defined('MOODLE_INTERNAL') || die();

$observers = [
    ['eventname' => '\local_kid\event\result_saved', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\workflow_changed', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\entry_published', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\entry_unpublished', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\entry_reopened', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\adesi_exported', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\promotion_updated', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\cohort_synced', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\csv_imported', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\export_generated', 'callback' => '\local_kid\local\journal_service::observe'],
    ['eventname' => '\local_kid\event\dossier_consulted', 'callback' => '\local_kid\local\journal_service::observe'],
];
