- 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
74 lines
2.5 KiB
PHP
74 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
use CodeIgniter\Format\JSONFormatter;
|
|
use CodeIgniter\Format\XMLFormatter;
|
|
|
|
class Format extends BaseConfig
|
|
{
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Available Response Formats
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* When you perform content negotiation with the request, these are the
|
|
* available formats that your application supports. This is currently
|
|
* only used with the API\ResponseTrait. A valid Formatter must exist
|
|
* for the specified format.
|
|
*
|
|
* These formats are only checked when the data passed to the respond()
|
|
* method is an array.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
public array $supportedResponseFormats = [
|
|
'application/json',
|
|
'application/xml', // machine-readable XML
|
|
'text/xml', // human-readable XML
|
|
];
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Formatters
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* Lists the class to use to format responses with of a particular type.
|
|
* For each mime type, list the class that should be used. Formatters
|
|
* can be retrieved through the getFormatter() method.
|
|
*
|
|
* @var array<string, string>
|
|
*/
|
|
public array $formatters = [
|
|
'application/json' => JSONFormatter::class,
|
|
'application/xml' => XMLFormatter::class,
|
|
'text/xml' => XMLFormatter::class,
|
|
];
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Formatters Options
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* Additional Options to adjust default formatters behaviour.
|
|
* For each mime type, list the additional options that should be used.
|
|
*
|
|
* @var array<string, int>
|
|
*/
|
|
public array $formatterOptions = [
|
|
'application/json' => JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES,
|
|
'application/xml' => 0,
|
|
'text/xml' => 0,
|
|
];
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Maximum depth for JSON encoding.
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* This value determines how deep the JSON encoder will traverse nested structures.
|
|
*/
|
|
public int $jsonEncodeDepth = 512;
|
|
}
|