mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
22 lines
673 B
PHP
22 lines
673 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Options;
|
|
|
|
use const Shlinkio\Shlink\DEFAULT_SHORT_CODES_LENGTH;
|
|
|
|
final class UrlShortenerOptions
|
|
{
|
|
public function __construct(
|
|
/** @var array{schema: ?string, hostname: ?string} */
|
|
public readonly array $domain = ['schema' => null, 'hostname' => null],
|
|
public readonly int $defaultShortCodesLength = DEFAULT_SHORT_CODES_LENGTH,
|
|
public readonly bool $autoResolveTitles = false,
|
|
public readonly bool $appendExtraPath = false,
|
|
public readonly bool $multiSegmentSlugsEnabled = false,
|
|
public readonly bool $trailingSlashEnabled = false,
|
|
) {
|
|
}
|
|
}
|