1 | <?php |
||
8 | trait Plugin |
||
9 | { |
||
10 | /** |
||
11 | * Deletes all unused default plugins. |
||
12 | */ |
||
13 | public static function pluginDeleteDefaults() |
||
24 | |||
25 | /** |
||
26 | * Deletes a plugin. |
||
27 | * |
||
28 | * @param string $plugin Theme name to delete. |
||
29 | */ |
||
30 | public static function pluginDelete($plugin) |
||
34 | |||
35 | /** |
||
36 | * Installs all of the plugins from the configuration. |
||
37 | * |
||
38 | * @param OutputInterface $output |
||
39 | */ |
||
40 | public static function pluginInstallAll(OutputInterface $output) |
||
62 | |||
63 | /** |
||
64 | * Installs and optionally activates plugin. |
||
65 | * |
||
66 | * @param string $plugin A plugin slug, the path to a local zip file, or URL to a remote zip file. |
||
67 | * @param boolean $activate Optional, if true the plugin will be activated immediately after install. |
||
68 | * @param string $version Optional, version of plugin to install. Default stable. |
||
69 | */ |
||
70 | public static function pluginInstall($plugin, $activate = true, $version = null) |
||
84 | } |
||
85 |