Closed rev3z closed 3 months ago
@leeqvip plz review
Unit tests added.
@rev3z Please fix the ci check error.
I'll fix it!
CI error fixed, PR contents updated.
@leeqvip plz review
:tada: This PR is included in version 3.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
This PR introduces an enhancement to enhance the flexibility of the Enforcer's model management:
Remote Model Initialization via URL: This feature enables the Enforcer to fetch its model configuration from a remote URL at startup.
Refactoring with Factory Pattern for Model Loading: To streamline and abstract the complexity of model loading processes, a new ModelLoaderFactory class has been introduced.
Upon initialization, the system not only supports fetching plain text model configurations from URLs but also sets the stage for more sophisticated content handling through custom implementations of
\Lauthz\Loaders\ModelLoader
, catering to diverse content types like JSON.Related Issues
[Question] Loading model from a remote URL #15
Details