Does this not go against the S in the Solid Principles - Single Responsibility #220
-
Single-responsibility Principle (SRP) states: When you can use a single action class as a controller, listener, command, etc, does this not go against this principle? My second question is, can an action contain all the business logic or should I create my service class and use them in an action? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It still does one thing: Execute one part of your business logic. Everything else is just piping and plumbing around it. |
Beta Was this translation helpful? Give feedback.
It still does one thing: Execute one part of your business logic. Everything else is just piping and plumbing around it.