Files
FOSSBilling/frontend/tools
Adam Daley af882d9c4b Code quality: replace error_log with logger, fix Stripe search escaping, and several small cleanups (#3866)
* Refine logging and search escaping fixes

* Extract Identity::typeFromObject() and cache Proxy dispatcher

The role-type string (str_replace('model_', '', strtolower($class))) was
duplicated independently in Identity, Proxy, and Dispatcher. Extract it
to Identity::typeFromObject() so the logic lives in one place.

Also cache the resolved Dispatcher in Proxy so repeated API calls on the
same Proxy instance (e.g. a template calling many API methods) don't
re-run the DI lookup and instanceof check each time.
2026-06-30 00:35:38 +01:00
..