-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Service contracts MUST NOT rely on the execution context #3870
Service contracts MUST NOT rely on the execution context #3870
Conversation
Anton Kaplia seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
An admin must run tests on this PR before it can be merged. |
@@ -610,6 +610,8 @@ class View extends Template | |||
|
|||
6.4.4.12. Any customizations to the domain/business logic MUST be executed on the Service Contracts layer, and so MUST be declared in the `global` area of configuration. | |||
|
|||
6.4.4.13. Service contracts MUST NOT rely on the execution context(application area). Services implementation MUST NOT know about the application state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.4.4.13. Service contracts MUST NOT rely on the execution context(application area). Services implementation MUST NOT know about the application state. | |
6.4.4.13. A service contract MUST NOT rely on the execution context (application area). The service implementation MUST NOT depend on the application state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -610,6 +610,8 @@ class View extends Template | |||
|
|||
6.4.4.12. Any customizations to the domain/business logic MUST be executed on the Service Contracts layer, and so MUST be declared in the `global` area of configuration. | |||
|
|||
6.4.4.13. Service contracts MUST NOT rely on the execution context (application area). Services implementation MUST NOT know about the application state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.4.4.13. Service contracts MUST NOT rely on the execution context (application area). Services implementation MUST NOT know about the application state. | |
6.4.4.13. A service contract MUST NOT rely on execution context (application area). The service implementation MUST NOT depend on the application state. |
@@ -610,6 +610,8 @@ class View extends Template | |||
|
|||
6.4.4.12. Any customizations to the domain/business logic MUST be executed on the Service Contracts layer, and so MUST be declared in the `global` area of configuration. | |||
|
|||
6.4.4.13. Service contracts MUST NOT rely on the execution context (application area). Services implementation MUST NOT know about the application state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be SHOULD or can it be applied in all cases today?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for all cases, for all service contracts
running tests |
Hi @akaplya, thank you for your contribution! |
It would be helpful to add a reason for the rule to the document, or link to a resource explaining the rationale behind it. |
Service contracts MUST NOT rely on the execution context
whatsnew
Added a technical guideline 6.4.4.13.