Skip to content

Commit 7ea1bc5

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-95945: Add a code mess rule for improper session and cookies usages
1 parent 32993d2 commit 7ea1bc5

File tree

1 file changed

+1
-1
lines changed
  • dev/tests/static/framework/Magento/CodeMessDetector/resources/rulesets

1 file changed

+1
-1
lines changed

dev/tests/static/framework/Magento/CodeMessDetector/resources/rulesets/design.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PostOrder implements ActionInterface
6464
<description>
6565
<![CDATA[
6666
Sessions and cookies must only be used in classes directly responsible for HTML presentation because Web APIs do not
67-
rely on cookies and sessions
67+
rely on cookies and sessions. If you need to get current user use Magento\Authorization\Model\UserContextInterface
6868
]]>
6969
</description>
7070
<priority>2</priority>

0 commit comments

Comments
 (0)