Skip to content

Commit 3436ae4

Browse files
authored
Merge pull request #9 from Eevee-chan/atikhonov-tech-readme
Update README.md
2 parents b858fcc + 494e27e commit 3436ae4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
To add recommendations via Advisor Integration API you need to add a hook that implements RecommendationsHookInterface.
2-
This interface contains two methods:
3-
* getRecommendations - in this method you need to add your recommendations with steps
4-
* applyStep - this method is called by Advisor every time a customer clicks on the apply button of a step
1+
To add recommendations via Advisor Integration API, you need to add a hook that implements `RecommendationsHookInterface`.
2+
This interface contains the following methods:
53

6-
Please, see src/plib/hooks/Advisor.php for more information.
4+
* With the `getRecommendations` method, you add your recommendations with steps.
5+
Steps in Advisor Integration API are similar to buttons that apply recommendations in the Plesk interface.
6+
For example, the "Configure the Plesk Firewall" recommendation has the "Activate" step/button that turns on the Plesk Firewall.
7+
* The `applyStep` method is called by Advisor every time a customer clicks the button in the Plesk interface to apply a recommendation.
8+
9+
For more information, see `src/plib/hooks/Advisor.php`.

0 commit comments

Comments
 (0)