FirewallMap
An ordered list of Firewall definitions, matched by request path.
Shared by Quiote\Security\Auth\Middleware\StatelessAuthenticationMiddleware and Quiote\Security\Auth\Middleware\SessionAuthenticationMiddleware so both middleware placements agree on the same firewall configuration.
Synopsis
Section titled “Synopsis”final class FirewallMap
| Since | 1.0.0 |
| Source | FirewallMap.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(array<Firewall> $firewalls): mixed
Checked in order; the first match wins.
| Parameter | Type | Description |
|---|---|---|
$firewalls | array``<Firewall> | Checked in order; the first match wins. |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
all(): array<Firewall> | |
match(string $path): ?Firewall |
public function all(): array<Firewall>
Returns array``<Firewall> — Every firewall in this map, in match order.
match()
Section titled “match()”public function match(string $path): ?Firewall
The request path to match (e.g. $request->getUri()->getPath()).
| Parameter | Type | Description |
|---|---|---|
$path | string | The request path to match (e.g. $request->getUri()->getPath()). |
Returns ?Firewall — The first firewall whose pattern matches $path, or null if none match.