Adds a helper wrapper to "logs" plugin.

main
Yasen Pramatarov 2026-01-14 17:36:49 +02:00
parent 521d8eafab
commit d0101925de
2 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,12 @@
<?php <?php
// Logs plugin bootstrap // Logs plugin bootstrap
// (here we add any plugin autoloader, if needed) if (!defined('PLUGIN_LOGS_PATH')) {
define('PLUGIN_LOGS_PATH', __DIR__ . '/');
}
// We add the plugin helpers wrapper
require_once PLUGIN_LOGS_PATH . 'helpers.php';
// List here all the controllers in "/controllers/" that we need as pages // List here all the controllers in "/controllers/" that we need as pages
$GLOBALS['plugin_controllers']['logs'] = [ $GLOBALS['plugin_controllers']['logs'] = [

View File

@ -0,0 +1,9 @@
<?php
/**
* Logs plugin helper aggregator.
*
* Bootstrap includes this file once so that all helper modules under helpers/
* are loaded consistently with other plugins.
*/
require_once __DIR__ . '/helpers/logs_view_helper.php';