mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 20:14:00 +08:00
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.
This commit is contained in:
parent
a67eca0c9e
commit
a7ed625d16
|
@ -10,6 +10,7 @@
|
|||
namespace Flarum\Formatter;
|
||||
|
||||
use Flarum\Foundation\AbstractServiceProvider;
|
||||
use Illuminate\Cache\Repository;
|
||||
use Illuminate\Contracts\Container\Container;
|
||||
|
||||
class FormatterServiceProvider extends AbstractServiceProvider
|
||||
|
@ -21,7 +22,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'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user