<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files.  Please see the user guide for info:
|
|	https://codeigniter.com/userguide3/general/hooks.html
|
*/
/*
| -------------------------------------------------------------------------
| HOOKS SYSTÈME MARITIME
| -------------------------------------------------------------------------
*/

// Hook pour log des actions utilisateur
$hook['post_controller'][] = array(
    'class'    => 'Maritime_Logger',
    'function' => 'log_user_action',
    'filename' => 'Maritime_Logger.php',
    'filepath' => 'hooks'
);

// Hook pour vérification maintenance système
$hook['pre_system'][] = array(
    'class'    => 'System_Maintenance',
    'function' => 'check_maintenance_mode',
    'filename' => 'System_Maintenance.php',
    'filepath' => 'hooks'
);