fix: extend not called (#5)

* fix: extend not called

* chore: phpstan
This commit is contained in:
IanM
2025-11-18 22:01:50 +00:00
committed by GitHub
parent b03ca35d54
commit d59ebfa684
4 changed files with 8 additions and 5 deletions

View File

@@ -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: .

View File

@@ -18,6 +18,7 @@
},
"homepage": "https://glowingblue.com",
"require": {
"php": "^8.1",
"flarum/core": "^1.8.5",
"fof/redis": "^1.0"
},

View File

@@ -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>

View File

@@ -29,9 +29,11 @@ class EnableRedis implements ExtenderInterface
{
$config = $this->buildConfig();
(new Redis($config))
->disable($this->getDisabledServices())
->extend($container, $extension);
/** @var Redis $redis */
$redis = (new Redis($config))
->disable($this->getDisabledServices());
$redis->extend($container, $extension);
}
private function getDisabledServices(): array