mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Add E2E tests for dynamic rule-based redirects
This commit is contained in:
@@ -16,8 +16,8 @@ class RedirectCondition extends AbstractEntity
|
||||
private function __construct(
|
||||
public readonly string $name,
|
||||
private readonly RedirectConditionType $type,
|
||||
public readonly string $matchValue,
|
||||
public readonly ?string $matchKey = null,
|
||||
private readonly string $matchValue,
|
||||
private readonly ?string $matchKey = null,
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class ShortUrlRedirectRule extends AbstractEntity
|
||||
private readonly ShortUrl $shortUrl, // No need to read this field. It's used by doctrine
|
||||
private readonly int $priority,
|
||||
public readonly string $longUrl,
|
||||
public readonly Collection $conditions = new ArrayCollection(),
|
||||
private Collection $conditions = new ArrayCollection(),
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user