Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/trigger/src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@

namespace FriendsOfHyperf\Trigger;

class Config extends \Hyperf\Config\Config
use Hyperf\Collection\Arr;

class Config
{
public function __construct(private array $configs = [])
{
}

public function get(string $key, mixed $default = null): mixed
{
return Arr::get($this->configs, $key, $default);
}

public function has(string $key): bool
{
return Arr::has($this->configs, $key);
}
}
1 change: 0 additions & 1 deletion src/trigger/src/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use FriendsOfHyperf\Trigger\Monitor\HealthMonitor;
use FriendsOfHyperf\Trigger\Mutex\ServerMutexInterface;
use FriendsOfHyperf\Trigger\Snapshot\BinLogCurrentSnapshotInterface;
use Hyperf\Config\Config;
use Hyperf\Coordinator\Constants;
use Hyperf\Coordinator\CoordinatorManager;
use Hyperf\Coroutine\Coroutine;
Expand Down
Loading