From db782ba26d2a8f2c8a04f6bb8beeef581670ce67 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Fri, 22 Feb 2013 18:29:43 +0200 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fd061dd..bbc631c 100644 --- a/README.md +++ b/README.md @@ -152,16 +152,16 @@ For more information please see the demo sources. Enable/Disable plugins ------------------- -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. -In this situation you wish a possibility to disable all but one extension. +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. +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 -based on Amazon Simple Email Service. The first extension is located in Plugin1 and the second extension is located in Plugin2. -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 from plugins folder pluginX.zip and pluginX folder) -2) disable Plugin1 or Plugin2 +based on Amazon Simple Email Service. The first extension is located in Plugin1 and the second extension is located in Plugin2. +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 from plugins folder pluginX.zip and pluginX folder) +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. The content for enabled.txt is similar with: ######################################## @@ -180,8 +180,8 @@ The content for disabled.txt is similar with: ######################################## welcome-plugin -All comment lines (line that start with # character) are ignored. -If a file with enabled.txt exists than disabled.txt is ignored. +All comment lines (line that start with # character) are ignored. +If a file with enabled.txt exists than disabled.txt is ignored. See enabled.txt and disabled.txt from the demo folder. Demo ------------------- -- 2.39.5