Файловый менеджер - Редактировать - /home/pimjdymy/public_html/safrandsi/vendor/web-auth/webauthn-lib/src/Denormalizer/CollectedClientDataDenormalizer.php
Назад
<?php declare(strict_types=1); namespace Webauthn\Denormalizer; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Webauthn\CollectedClientData; use const JSON_THROW_ON_ERROR; final class CollectedClientDataDenormalizer implements DenormalizerInterface, DenormalizerAwareInterface { use DenormalizerAwareTrait; public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed { return CollectedClientData::create($data, json_decode($data, true, flags: JSON_THROW_ON_ERROR)); } public function supportsDenormalization( mixed $data, string $type, ?string $format = null, array $context = [] ): bool { return $type === CollectedClientData::class; } /** * @return array<class-string, bool> */ public function getSupportedTypes(?string $format): array { return [ CollectedClientData::class => true, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка