mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Integrado ultimo CI4 y modificando archivos para que rule
This commit is contained in:
@ -4,6 +4,7 @@ namespace Config;
|
||||
|
||||
use CodeIgniter\Events\Events;
|
||||
use CodeIgniter\Exceptions\FrameworkException;
|
||||
use CodeIgniter\HotReloader\HotReloader;
|
||||
|
||||
/*
|
||||
* --------------------------------------------------------------------
|
||||
@ -32,9 +33,7 @@ Events::on('pre_system', static function () {
|
||||
ob_end_flush();
|
||||
}
|
||||
|
||||
ob_start(static function ($buffer) {
|
||||
return $buffer;
|
||||
});
|
||||
ob_start(static fn ($buffer) => $buffer);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -46,5 +45,24 @@ Events::on('pre_system', static function () {
|
||||
if (CI_DEBUG && ! is_cli()) {
|
||||
Events::on('DBQuery', 'CodeIgniter\Debug\Toolbar\Collectors\Database::collect');
|
||||
Services::toolbar()->respond();
|
||||
// Hot Reload route - for framework use on the hot reloader.
|
||||
if (ENVIRONMENT === 'development') {
|
||||
Services::routes()->get('__hot-reload', static function () {
|
||||
(new HotReloader())->run();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
Events::on('login', static function ($user) {
|
||||
helper('logger');
|
||||
getSystemSettings();
|
||||
setLog('information','user-login', $user->id);
|
||||
});
|
||||
|
||||
Events::on('logout', static function ($user) {
|
||||
helper('logger');
|
||||
setLog('information','user-logout', $user->id);
|
||||
});
|
||||
*/
|
||||
Reference in New Issue
Block a user