-
Notifications
You must be signed in to change notification settings - Fork 23
Improve and refactor loader for API Resource classes #22
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Currently path of API Resource classes is not configurable. There is hardcoded path Classes/Domain/Model/*.php of loaded extensions (see \SourceBroker\T3api\Domain\Repository\ApiResourceRepository::getAllDomainModels). Although it's probably enough for most of use cases, hardcoded part makes it impossible to write tests. This task is about refactoring this part of code to make it possible to write tests.
Moreover within this task t3api should start to include also subfolders of Classes/Domain/Model when looking for API Resources.
- Make API Resource path configurable.
- Include subfolders of
Classes/Domain/Modelwhen searching for API Resource. - Write unit/functional tests.
- Write documentation how to customise API Resource path.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request