mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
* 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.