mirror of https://github.com/flarum/flarum
Correct cache alias
parent
7133badeb8
commit
244b8b5b5d
|
@ -104,13 +104,13 @@ use Illuminate\Cache\Repository;
|
||||||
use Illuminate\Filesystem\Filesystem;
|
use Illuminate\Filesystem\Filesystem;
|
||||||
use Illuminate\Queue\Connectors\SyncConnector;
|
use Illuminate\Queue\Connectors\SyncConnector;
|
||||||
|
|
||||||
$app->singleton('cache.store', function($app) {
|
$app->singleton('cache', function($app) {
|
||||||
$store = new FileStore(new Filesystem(), storage_path('framework/cache'));
|
$store = new FileStore(new Filesystem(), storage_path('framework/cache'));
|
||||||
$repository = new Repository($store);
|
$repository = new Repository($store);
|
||||||
$repository->setEventDispatcher($app->make('events'));
|
$repository->setEventDispatcher($app->make('events'));
|
||||||
return $repository;
|
return $repository;
|
||||||
});
|
});
|
||||||
$app->alias('cache.store', 'Illuminate\Contracts\Cache\Store');
|
$app->alias('cache', 'Illuminate\Contracts\Cache\Repository');
|
||||||
|
|
||||||
$app->singleton('queue.connection', function($app) {
|
$app->singleton('queue.connection', function($app) {
|
||||||
$connector = new SyncConnector();
|
$connector = new SyncConnector();
|
||||||
|
|
Loading…
Reference in New Issue