mirror of
https://github.com/Mibew/boilerplate-plugin.git
synced 2025-02-05 08:44:42 +03:00
Update installation instructions
This commit is contained in:
parent
144773fbe5
commit
163324ce9b
11
Plugin.php
11
Plugin.php
@ -32,8 +32,8 @@
|
||||
* - Foo12:Bar
|
||||
* - Acme:TheBestPlugin
|
||||
*
|
||||
* To turn the plugin on add its definition to the following to "plugins"
|
||||
* structure in <mibew root>/configs/config.yml if the "plugins" structure looks
|
||||
* To configure the plugin add its configs to the "plugins" structure in
|
||||
* "<mibew root>/configs/config.yml" file. If the "plugins" structure looks
|
||||
* like:
|
||||
* <code>
|
||||
* plugins: []
|
||||
@ -41,11 +41,12 @@
|
||||
* it will become:
|
||||
* <code>
|
||||
* plugins:
|
||||
* -
|
||||
* name: "Mibew:Boilerplate"
|
||||
* config:
|
||||
* "Mibew:Boilerplate":
|
||||
* very_important_value: "$3.50"
|
||||
* </code>
|
||||
*
|
||||
* To turn the plugin on navigate to "<Mibew Base URL>/operator/plugin" page and
|
||||
* enable the plugin.
|
||||
*/
|
||||
|
||||
namespace Mibew\Mibew\Plugin\Boilerplate;
|
||||
|
@ -7,15 +7,15 @@ It does nothing but can be used as a template for a real plugin.
|
||||
1. Download files of the plugin.
|
||||
2. Create folder "```<Mibew root>```/plugins/Mibew/Mibew/Plugin/Boilerplate" (case does matter).
|
||||
3. Put files of the plugins to the just created folder.
|
||||
4. Add plugins defenition to "plugins" structure in "```<Mibew root>```/configs/config.yml".
|
||||
4. Add plugins configs to "plugins" structure in "```<Mibew root>```/configs/config.yml".
|
||||
If the "plugins" stucture looks like ```plugins: []``` it will become:
|
||||
```yaml
|
||||
plugins:
|
||||
-
|
||||
name: "Mibew:Boilerplate"
|
||||
config:
|
||||
"Mibew:Boilerplate":
|
||||
very_important_value: "$3.50"
|
||||
```
|
||||
5. Navigate to "`<Mibew Base URL>`/operator/plugin" page and enable the plugin.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user