mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-09 00:13:58 +09:00
Updates to vendors etc
This commit is contained in:
12
vendor/symfony/string/Slugger/AsciiSlugger.php
vendored
12
vendor/symfony/string/Slugger/AsciiSlugger.php
vendored
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Symfony\Component\String\Slugger;
|
||||
|
||||
use Symfony\Component\Intl\Transliterator\EmojiTransliterator;
|
||||
use Symfony\Component\Emoji\EmojiTransliterator;
|
||||
use Symfony\Component\String\AbstractUnicodeString;
|
||||
use Symfony\Component\String\UnicodeString;
|
||||
use Symfony\Contracts\Translation\LocaleAwareInterface;
|
||||
@@ -55,7 +55,6 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
|
||||
'zh' => 'Han-Latin',
|
||||
];
|
||||
|
||||
private ?string $defaultLocale;
|
||||
private \Closure|array $symbolsMap = [
|
||||
'en' => ['@' => 'at', '&' => 'and'],
|
||||
];
|
||||
@@ -68,9 +67,10 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
|
||||
*/
|
||||
private array $transliterators = [];
|
||||
|
||||
public function __construct(?string $defaultLocale = null, array|\Closure|null $symbolsMap = null)
|
||||
{
|
||||
$this->defaultLocale = $defaultLocale;
|
||||
public function __construct(
|
||||
private ?string $defaultLocale = null,
|
||||
array|\Closure|null $symbolsMap = null,
|
||||
) {
|
||||
$this->symbolsMap = $symbolsMap ?? $this->symbolsMap;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
|
||||
public function withEmoji(bool|string $emoji = true): static
|
||||
{
|
||||
if (false !== $emoji && !class_exists(EmojiTransliterator::class)) {
|
||||
throw new \LogicException(sprintf('You cannot use the "%s()" method as the "symfony/intl" package is not installed. Try running "composer require symfony/intl".', __METHOD__));
|
||||
throw new \LogicException(\sprintf('You cannot use the "%s()" method as the "symfony/emoji" package is not installed. Try running "composer require symfony/emoji".', __METHOD__));
|
||||
}
|
||||
|
||||
$new = clone $this;
|
||||
|
||||
Reference in New Issue
Block a user