Skip to content

Commit 15192be

Browse files
author
Rune Laenen
committed
Make cache:clear hook message more clear
1 parent 00064de commit 15192be

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Readme.md README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@
44

55
Automatically disable plugins if files are deleted
66

7+
***
8+
#### **only for use in dev environments!!!**
9+
***
10+
711
### Features
812

913
* No more errors due to switches git branches
14+
* Hooks into `bin/console sw:cache:clear` CLI command
15+
* Adds CLI command `bin/console rune:pluginreset:resetplugins`
1016

1117
## Requirements
1218

Subscriber/ClearCacheSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function onClearCache(\Enlight_Event_EventArgs $args)
4646
{
4747
$disabled = $this->pluginResetService->resetPlugins();
4848
if(count($disabled)) {
49-
printf("[RunePluginReset] %1 plugins disabled\n", count($disabled));
49+
printf("[RunePluginReset] %d plugins disabled: %s\n", count($disabled), implode(', ', $disabled));
5050
}
5151
}
5252
}

plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<label lang="en">RunePluginReset</label>
55
<version>0.0.1</version>
66
<copyright>(c) by Rune Laenen</copyright>
7-
<license>proprietary</license>
7+
<license>open source</license>
88
<link>https://github.com/runelaenen/RunePluginReset</link>
99
<author>Rune Laenen</author>
1010

0 commit comments

Comments
 (0)