Browse Source

Update README.md

pull/3/head
Decebal Suiu 12 years ago
parent
commit
46784a26b3
  1. 9
      README.md

9
README.md

@ -152,13 +152,14 @@ For more information please see the demo sources.
Enable/Disable plugins Enable/Disable plugins
------------------- -------------------
In theory, it's a relation 1:N between an extension point and the extensions for this extension point. In theory, it's a relation **1:N** between an extension point and the extensions for this extension point.
This works well, except for when you develop multiple plugins for this extension point as different options for your clients to decide on which one to use. This works well, except for when you develop multiple plugins for this extension point as different options for your clients to decide on which one to use.
In this situation you wish a possibility to disable all but one extension. In this situation you wish a possibility to disable all but one extension.
For example I have an extension point for sending mail (EmailSender interface) with two extensions: one based on Sendgrid and another For example I have an extension point for sending mail (EmailSender interface) with two extensions: one based on Sendgrid and another
based on Amazon Simple Email Service. The first extension is located in Plugin1 and the second extension is located in Plugin2. based on Amazon Simple Email Service.
I want to go only with one extension (1:1 relation between extension point and extensions) and to achieve this I have two options: The first extension is located in Plugin1 and the second extension is located in Plugin2.
1) uninstall Plugin1 or Plugin2 (remove from plugins folder pluginX.zip and pluginX folder) I want to go only with one extension ( **1:1** relation between extension point and extensions) and to achieve this I have two options:
1) uninstall Plugin1 or Plugin2 (remove folder pluginX.zip and pluginX from plugins folder)
2) disable Plugin1 or Plugin2 2) disable Plugin1 or Plugin2
For option two you must create a simple file enabled.txt or disabled.txt in your plugins folder. For option two you must create a simple file enabled.txt or disabled.txt in your plugins folder.

Loading…
Cancel
Save