mirror of
https://github.com/glowingblue/flarum-ext-redis-setup.git
synced 2026-03-22 06:57:45 +01:00
2
.github/workflows/backend.yml
vendored
2
.github/workflows/backend.yml
vendored
@@ -8,6 +8,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
enable_backend_testing: false
|
enable_backend_testing: false
|
||||||
enable_phpstan: true
|
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: .
|
backend_directory: .
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://glowingblue.com",
|
"homepage": "https://glowingblue.com",
|
||||||
"require": {
|
"require": {
|
||||||
|
"php": "^8.1",
|
||||||
"flarum/core": "^1.8.5",
|
"flarum/core": "^1.8.5",
|
||||||
"fof/redis": "^1.0"
|
"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 Redis sessions (all users will be logged out after changing this setting)
|
||||||
enable_queue: Enable Redis queue
|
enable_queue: Enable Redis queue
|
||||||
horizon_config: "Horizon config (format: JSON)."
|
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,9 +29,11 @@ class EnableRedis implements ExtenderInterface
|
|||||||
{
|
{
|
||||||
$config = $this->buildConfig();
|
$config = $this->buildConfig();
|
||||||
|
|
||||||
(new Redis($config))
|
/** @var Redis $redis */
|
||||||
->disable($this->getDisabledServices())
|
$redis = (new Redis($config))
|
||||||
->extend($container, $extension);
|
->disable($this->getDisabledServices());
|
||||||
|
|
||||||
|
$redis->extend($container, $extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getDisabledServices(): array
|
private function getDisabledServices(): array
|
||||||
|
|||||||
Reference in New Issue
Block a user