diff --git a/Readme.md b/README.md similarity index 85% rename from Readme.md rename to README.md index 8db5eb7..466b72e 100644 --- a/Readme.md +++ b/README.md @@ -4,9 +4,15 @@ Automatically disable plugins if files are deleted +*** +#### **only for use in dev environments!!!** +*** + ### Features * No more errors due to switches git branches +* Hooks into `bin/console sw:cache:clear` CLI command +* Adds CLI command `bin/console rune:pluginreset:resetplugins` ## Requirements diff --git a/Subscriber/ClearCacheSubscriber.php b/Subscriber/ClearCacheSubscriber.php index 8e2defa..2b616d9 100644 --- a/Subscriber/ClearCacheSubscriber.php +++ b/Subscriber/ClearCacheSubscriber.php @@ -46,7 +46,7 @@ public function onClearCache(\Enlight_Event_EventArgs $args) { $disabled = $this->pluginResetService->resetPlugins(); if(count($disabled)) { - printf("[RunePluginReset] %1 plugins disabled\n", count($disabled)); + printf("[RunePluginReset] %d plugins disabled: %s\n", count($disabled), implode(', ', $disabled)); } } } diff --git a/plugin.xml b/plugin.xml index f12b86b..7d89152 100644 --- a/plugin.xml +++ b/plugin.xml @@ -4,7 +4,7 @@ 0.0.1 (c) by Rune Laenen - proprietary + open source https://github.com/runelaenen/RunePluginReset Rune Laenen