Commit Graph
507 Commits
Author SHA1 Message Date
kate522 68d2e78d77 fix(ns): class_exists() must use FQCN after PSR-4
Bare class_exists('Balance') looks up global Balance, always false
under AKSRT\* namespaces → REST 403 on balance exchange and friends.
Rewrite string checks to AKSRT\{Domain}\{Class}.
2026-07-17 15:40:20 +08:00
kate522 1e21911b03 fix(ns): root-qualify WP_* classes after PSR-4 move
Bare WP_REST_Server etc. resolve under AKSRT\* namespaces; prefix with
\ for Balance REST and other type hints / constructors.
2026-07-17 15:12:14 +08:00
kate522 da59d550ad fix(ns): root-qualify PHP builtins after PSR-4 move
Namespaced classes resolved DateTimeImmutable etc. under AKSRT\*
(e.g. Credits\DateTimeImmutable). Prefix with \ globally.
2026-07-17 15:05:03 +08:00
kate522 db210d7003 fix(scripts): drop dead $path arg from enqueue_public split
Trait split left enqueue_public_fonts_js_and_data requiring $path, but
caller never defines it; param unused. Remove to silence PHP warnings.
2026-07-17 14:58:30 +08:00
kate522 3cf0c08969 fix(autoload): one PSR-4 type per payment/widget file
PSR-4 split left GatewayInterface/Gateway duplicated across files;
loading BalanceGateway redeclared the interface. Strip sibling types
from polluted files (payment + widgets) so each path owns one type.
2026-07-17 14:44:36 +08:00
kate522 b2a57c700f fix(settings): restore memo cache dropped in class split
PSR-4/split left get_all() reading undeclared $cached_all, fatalling
admin boot; restore property + standalone/secret option key consts.
2026-07-17 13:59:34 +08:00
kate522 aaf458af1c refactor(autoload): migrate theme classes to Composer PSR-4
Move 288 types from global AKSRT_* + inc/classes manual requires into
namespace AKSRT\{Domain} under src/AKSRT/, wire composer.json psr-4,
and slim bootstrap to helpers/modules/hooks only. Split multi-class
widget/gateway files, update admin contract audit paths, and document
the layout in ADR/README.
2026-07-17 13:29:22 +08:00