Frameworks and business rules
Don’t let framework components into your core code.
Define boundaries between core and infrastructure components to enable a pluggable system.¹
The library components do not define the architectural boundaries of the system. The components that support business capabilities do.¹
Frameworks are not built but extracted — David Heinemeier Hansson
The framework’s architecture exists to support the tool rather than any business.
— — —
[1]: Robert C. Martin (2018): Clean architecture: a craftsman’s guide to software structure and design(https://www.amazon.com/Clean-Architecture-Craftsmans-Software-Structure-ebook-dp-B075LRM681/dp/B075LRM681/ref=mt_other?_encoding=UTF8&me=&qid=)