- Full gg.deals-style UI: deal feed with filters, game pages with price history charts, rankings, vouchers, news, prepaids, subscriptions, bundles, franchises, wishlist, API docs - Real data crawlers: * gg:crawl (Steam Store API + GOG Catalog + Epic free games) * gg:catalog (252K game slugs from gg.deals sitemaps) * gg:ggdeals (per-game prices via FlareSolverr session, JSON-LD parsing) * gg:seed / gg:crawl-covers (demo seed + Steam CDN cover art) - 24/7 self-updating scheduler (scripts/scheduler_loop.php, lockfile-protected) - Tailwind v4 dark/light theme, Alpine.js, Chart.js
63 lines
1.7 KiB
PHP
63 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
/**
|
|
* This configuration controls how CodeIgniter behaves when running
|
|
* in worker mode (with FrankenPHP).
|
|
*/
|
|
class WorkerMode
|
|
{
|
|
/**
|
|
* Persistent Services
|
|
*
|
|
* List of service names that should persist across requests.
|
|
* These services will NOT be reset between requests.
|
|
*
|
|
* Services not in this list will be reset for each request to prevent
|
|
* state leakage.
|
|
*
|
|
* Recommended persistent services:
|
|
* - `autoloader`: PSR-4 autoloading configuration
|
|
* - `locator`: File locator
|
|
* - `exceptions`: Exception handler
|
|
* - `commands`: CLI commands registry
|
|
* - `codeigniter`: Main application instance
|
|
* - `superglobals`: Superglobals wrapper
|
|
* - `routes`: Router configuration
|
|
* - `cache`: Cache instance
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
public array $persistentServices = [
|
|
'autoloader',
|
|
'locator',
|
|
'exceptions',
|
|
'commands',
|
|
'codeigniter',
|
|
'superglobals',
|
|
'routes',
|
|
'cache',
|
|
];
|
|
|
|
/**
|
|
* Reset Event Listeners
|
|
*
|
|
* List of event names whose listeners should be removed between requests.
|
|
* Use this if you register event listeners inside other event callbacks
|
|
* (rather than at the top level of Config/Events.php), which would cause
|
|
* them to accumulate across requests in worker mode.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
public array $resetEventListeners = [];
|
|
|
|
/**
|
|
* Force Garbage Collection
|
|
*
|
|
* Whether to force garbage collection after each request.
|
|
* Helps prevent memory leaks at a small performance cost.
|
|
*/
|
|
public bool $forceGarbageCollection = true;
|
|
}
|