Skip to content

Improve and refactor loader for API Resource classes #22

@klamparski

Description

@klamparski

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/Model when searching for API Resource.
  • Write unit/functional tests.
  • Write documentation how to customise API Resource path.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions