mirror of
https://github.com/glowingblue/flarum-ext-redis-setup.git
synced 2026-03-22 06:57:45 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d59ebfa684 | ||
|
|
b03ca35d54 |
2
.github/workflows/backend.yml
vendored
2
.github/workflows/backend.yml
vendored
@@ -8,6 +8,6 @@ jobs:
|
||||
with:
|
||||
enable_backend_testing: false
|
||||
enable_phpstan: true
|
||||
php_versions: '["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]'
|
||||
php_versions: '["8.1", "8.2", "8.3", "8.4"]'
|
||||
|
||||
backend_directory: .
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
},
|
||||
"homepage": "https://glowingblue.com",
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"flarum/core": "^1.8.5",
|
||||
"fof/redis": "^1.0"
|
||||
},
|
||||
|
||||
@@ -6,4 +6,4 @@ glowingblue-redis-setup:
|
||||
Enable Redis sessions (all users will be logged out after changing this setting)
|
||||
enable_queue: Enable Redis queue
|
||||
horizon_config: "Horizon config (format: JSON)."
|
||||
horizon_help_text: This will be passed to <code>(new \Blomstra\Horizon\Extend\Horizon)->config(...))</code>
|
||||
horizon_help_text: This will be passed to <code>(new \FoF\Horizon\Extend\Horizon)->config(...))</code>
|
||||
|
||||
@@ -29,8 +29,11 @@ class EnableRedis implements ExtenderInterface
|
||||
{
|
||||
$config = $this->buildConfig();
|
||||
|
||||
(new Redis($config))
|
||||
/** @var Redis $redis */
|
||||
$redis = (new Redis($config))
|
||||
->disable($this->getDisabledServices());
|
||||
|
||||
$redis->extend($container, $extension);
|
||||
}
|
||||
|
||||
private function getDisabledServices(): array
|
||||
|
||||
Reference in New Issue
Block a user