Skip to content

Commit

Permalink
Make cache:clear hook message more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Rune Laenen committed Feb 9, 2019
1 parent 00064de commit 15192be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Readme.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Subscriber/ClearCacheSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<label lang="en">RunePluginReset</label>
<version>0.0.1</version>
<copyright>(c) by Rune Laenen</copyright>
<license>proprietary</license>
<license>open source</license>
<link>https://github.com/runelaenen/RunePluginReset</link>
<author>Rune Laenen</author>

Expand Down

0 comments on commit 15192be

Please sign in to comment.