Skip to content
This repository was archived by the owner on Jul 18, 2022. It is now read-only.

Commit 8569418

Browse files
committed
Fix issue if Git is disabled
1 parent afca0e9 commit 8569418

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class ServiceProvider extends AddonServiceProvider
2525

2626
public function bootAddon()
2727
{
28-
Git::listen(\Aerni\DynamicCache\Events\DynamicCacheSaved::class);
28+
if (config('statamic.git.enabled')) {
29+
Git::listen(\Aerni\DynamicCache\Events\DynamicCacheSaved::class);
30+
}
2931
}
3032
}

0 commit comments

Comments
 (0)