HotReloader example


    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 D) {
                (new HotReloader())->run();
            });
        }
    }
});
Home | Imprint | This part of the site doesn't use cookies.