0 follower

Final Class Yiisoft\HttpMiddleware\ForceSecureConnection\RedirectOptions

InheritanceYiisoft\HttpMiddleware\ForceSecureConnection\RedirectOptions

Redirection HTTP to HTTPS options.

Property Details

Hide inherited properties

$enabled public property
public boolean $enabled true
$port public property
public integer|null $port null

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( boolean $enabled true, integer|null $port null )
$enabled boolean

Whether to enable redirection.

$port integer|null

The redirection port.

                public function __construct(
    public readonly bool $enabled = true,
    public readonly ?int $port = null,
) {
}