Refactor controller business logic to service(s) #806
Labels
Attn: BC Break
This issue or PR results in a backwards-compatibility break and therefore requires a major release.
Attn: Blocker
This item blocks other issue(s) or PR(s) and therefore must be resolved prior.
Level: New Feature 🆕
This item involves the introduction of new functionality.
State: Confirmed
This item has been confirmed by maintainers as legitimate.
With the
1.x
codebase, the controller defines a large subset of routing and conditional logic between the different objects required to successfully generate and cache a transformed image, and as the current controller interface requires a request object, such must be mocked when called outside a context where a request object is natively available.This is inconvenient, and can be improved.
This
2.x
feature is to tear the vast majority of business logic out from the controller and define a collection of (or one?) services that implement the required logic to "glue" together the different layers needed. Most importantly, this new functionality should be request-agnostic.The text was updated successfully, but these errors were encountered: