From 923eea1cd8291d71d5bb0430faa15a1101af6cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Tue, 10 Sep 2019 12:33:25 +0200 Subject: [PATCH] Fixes an issue where a different cache driver is used and Formatter attempts to load the s9e Renderer from the wrong cache. It has to be saved locally so that it can be properly loaded using the spl auto register functionality. --- framework/core/src/Formatter/FormatterServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Formatter/FormatterServiceProvider.php b/framework/core/src/Formatter/FormatterServiceProvider.php index 8ed73457b..2e2f9448d 100644 --- a/framework/core/src/Formatter/FormatterServiceProvider.php +++ b/framework/core/src/Formatter/FormatterServiceProvider.php @@ -12,6 +12,7 @@ namespace Flarum\Formatter; use Flarum\Foundation\AbstractServiceProvider; +use Illuminate\Cache\Repository; use Illuminate\Contracts\Container\Container; class FormatterServiceProvider extends AbstractServiceProvider @@ -23,7 +24,7 @@ class FormatterServiceProvider extends AbstractServiceProvider { $this->app->singleton('flarum.formatter', function (Container $container) { return new Formatter( - $container->make('cache.store'), + new Repository($container->make('cache.filestore')), $container->make('events'), $this->app->storagePath().'/formatter' );