<?php

declare(strict_types=1);

/*
 * This file is part of the Ferienpass package.
 *
 * (c) Richard Henkenjohann <richard@ferienpass.online>
 *
 * For more information visit the project website <https://ferienpass.online>
 * or the documentation under <https://docs.ferienpass.online>.
 */

namespace Ferienpass\AdminBundle\Routing;

/**
 * Route requirement patterns for base58-encoded identifiers.
 *
 * Admin routes accept a base58 UUID (22 chars, Bitcoin alphabet — no 0 O I l)
 * under their canonical name; the RFC4122 form lives on a parallel
 * `{name}_legacy` route so old links keep resolving. A controller arg typed
 * `Symfony\Component\Uid\Uuid` resolves either form via Uuid::fromString().
 */
final class Base58
{
    public const UUID = '[1-9A-HJ-NP-Za-km-z]{22}';
}
