Skip to content

Commit

Permalink
Add groups wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Nov 16, 2022
1 parent 682f7d7 commit 4b36b07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Queue/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public static function setResource(string $name, callable $callback, array $inje
public function shutdown(): Hook
{
$hook = new Hook();
$hook->groups(['*']);
$this->shutdownHooks[] = $hook;
return $hook;
}
Expand Down Expand Up @@ -174,6 +175,7 @@ public function stop(): self
public function init(): Hook
{
$hook = new Hook();
$hook->groups(['*']);
$this->initHooks[] = $hook;
return $hook;
}
Expand Down Expand Up @@ -320,6 +322,7 @@ public function start(): self
public function workerStart(): Hook
{
$hook = new Hook();
$hook->groups(['*']);
$this->workerStartHook = $hook;
return $hook;
}
Expand Down Expand Up @@ -415,6 +418,7 @@ protected function validate(string $key, array $param, mixed $value): void
public function error(): Hook
{
$hook = new Hook();
$hook->groups(['*']);
$this->errorHooks[] = $hook;
return $hook;
}
Expand Down

0 comments on commit 4b36b07

Please sign in to comment.