feat: implement global autoresponder plugin
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
final class LocalizedException extends RuntimeException
|
||||
{
|
||||
/** @param array<string,string|int|float> $vars */
|
||||
public function __construct(private string $key, private array $vars = [])
|
||||
{
|
||||
parent::__construct($key);
|
||||
}
|
||||
|
||||
public function key(): string
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
/** @return array<string,string|int|float> */
|
||||
public function vars(): array
|
||||
{
|
||||
return $this->vars;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user