Changeset 3437941
- Timestamp:
- 01/12/2026 04:33:25 PM (8 weeks ago)
- Location:
- mailerpress/trunk/vendor/symfony
- Files:
-
- 308 added
- 12 edited
-
clock (added)
-
clock/Clock.php (added)
-
clock/ClockAwareTrait.php (added)
-
clock/ClockInterface.php (added)
-
clock/DatePoint.php (added)
-
clock/LICENSE (added)
-
clock/MockClock.php (added)
-
clock/MonotonicClock.php (added)
-
clock/NativeClock.php (added)
-
clock/Resources (added)
-
clock/Resources/now.php (added)
-
clock/Test (added)
-
clock/Test/ClockSensitiveTrait.php (added)
-
event-dispatcher/DependencyInjection/RegisterListenersPass.php (modified) (4 diffs)
-
http-foundation (added)
-
http-foundation/AcceptHeader.php (added)
-
http-foundation/AcceptHeaderItem.php (added)
-
http-foundation/BinaryFileResponse.php (added)
-
http-foundation/ChainRequestMatcher.php (added)
-
http-foundation/Cookie.php (added)
-
http-foundation/EventStreamResponse.php (added)
-
http-foundation/Exception (added)
-
http-foundation/Exception/BadRequestException.php (added)
-
http-foundation/Exception/ConflictingHeadersException.php (added)
-
http-foundation/Exception/ExceptionInterface.php (added)
-
http-foundation/Exception/ExpiredSignedUriException.php (added)
-
http-foundation/Exception/JsonException.php (added)
-
http-foundation/Exception/LogicException.php (added)
-
http-foundation/Exception/RequestExceptionInterface.php (added)
-
http-foundation/Exception/SessionNotFoundException.php (added)
-
http-foundation/Exception/SignedUriException.php (added)
-
http-foundation/Exception/SuspiciousOperationException.php (added)
-
http-foundation/Exception/UnexpectedValueException.php (added)
-
http-foundation/Exception/UnsignedUriException.php (added)
-
http-foundation/Exception/UnverifiedSignedUriException.php (added)
-
http-foundation/File (added)
-
http-foundation/File/Exception (added)
-
http-foundation/File/Exception/AccessDeniedException.php (added)
-
http-foundation/File/Exception/CannotWriteFileException.php (added)
-
http-foundation/File/Exception/ExtensionFileException.php (added)
-
http-foundation/File/Exception/FileException.php (added)
-
http-foundation/File/Exception/FileNotFoundException.php (added)
-
http-foundation/File/Exception/FormSizeFileException.php (added)
-
http-foundation/File/Exception/IniSizeFileException.php (added)
-
http-foundation/File/Exception/NoFileException.php (added)
-
http-foundation/File/Exception/NoTmpDirFileException.php (added)
-
http-foundation/File/Exception/PartialFileException.php (added)
-
http-foundation/File/Exception/UnexpectedTypeException.php (added)
-
http-foundation/File/Exception/UploadException.php (added)
-
http-foundation/File/File.php (added)
-
http-foundation/File/Stream.php (added)
-
http-foundation/File/UploadedFile.php (added)
-
http-foundation/FileBag.php (added)
-
http-foundation/HeaderBag.php (added)
-
http-foundation/HeaderUtils.php (added)
-
http-foundation/InputBag.php (added)
-
http-foundation/IpUtils.php (added)
-
http-foundation/JsonResponse.php (added)
-
http-foundation/LICENSE (added)
-
http-foundation/ParameterBag.php (added)
-
http-foundation/RateLimiter (added)
-
http-foundation/RateLimiter/AbstractRequestRateLimiter.php (added)
-
http-foundation/RateLimiter/PeekableRequestRateLimiterInterface.php (added)
-
http-foundation/RateLimiter/RequestRateLimiterInterface.php (added)
-
http-foundation/RedirectResponse.php (added)
-
http-foundation/Request.php (added)
-
http-foundation/RequestMatcher (added)
-
http-foundation/RequestMatcher/AttributesRequestMatcher.php (added)
-
http-foundation/RequestMatcher/ExpressionRequestMatcher.php (added)
-
http-foundation/RequestMatcher/HeaderRequestMatcher.php (added)
-
http-foundation/RequestMatcher/HostRequestMatcher.php (added)
-
http-foundation/RequestMatcher/IpsRequestMatcher.php (added)
-
http-foundation/RequestMatcher/IsJsonRequestMatcher.php (added)
-
http-foundation/RequestMatcher/MethodRequestMatcher.php (added)
-
http-foundation/RequestMatcher/PathRequestMatcher.php (added)
-
http-foundation/RequestMatcher/PortRequestMatcher.php (added)
-
http-foundation/RequestMatcher/QueryParameterRequestMatcher.php (added)
-
http-foundation/RequestMatcher/SchemeRequestMatcher.php (added)
-
http-foundation/RequestMatcherInterface.php (added)
-
http-foundation/RequestStack.php (added)
-
http-foundation/Response.php (added)
-
http-foundation/ResponseHeaderBag.php (added)
-
http-foundation/ServerBag.php (added)
-
http-foundation/ServerEvent.php (added)
-
http-foundation/Session (added)
-
http-foundation/Session/Attribute (added)
-
http-foundation/Session/Attribute/AttributeBag.php (added)
-
http-foundation/Session/Attribute/AttributeBagInterface.php (added)
-
http-foundation/Session/Flash (added)
-
http-foundation/Session/Flash/AutoExpireFlashBag.php (added)
-
http-foundation/Session/Flash/FlashBag.php (added)
-
http-foundation/Session/Flash/FlashBagInterface.php (added)
-
http-foundation/Session/FlashBagAwareSessionInterface.php (added)
-
http-foundation/Session/Session.php (added)
-
http-foundation/Session/SessionBagInterface.php (added)
-
http-foundation/Session/SessionBagProxy.php (added)
-
http-foundation/Session/SessionFactory.php (added)
-
http-foundation/Session/SessionFactoryInterface.php (added)
-
http-foundation/Session/SessionInterface.php (added)
-
http-foundation/Session/SessionUtils.php (added)
-
http-foundation/Session/Storage (added)
-
http-foundation/Session/Storage/Handler (added)
-
http-foundation/Session/Storage/Handler/AbstractSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/IdentityMarshaller.php (added)
-
http-foundation/Session/Storage/Handler/MarshallingSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/MemcachedSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/MigratingSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/MongoDbSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/NullSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/PdoSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/RedisSessionHandler.php (added)
-
http-foundation/Session/Storage/Handler/SessionHandlerFactory.php (added)
-
http-foundation/Session/Storage/Handler/StrictSessionHandler.php (added)
-
http-foundation/Session/Storage/MetadataBag.php (added)
-
http-foundation/Session/Storage/MockArraySessionStorage.php (added)
-
http-foundation/Session/Storage/MockFileSessionStorage.php (added)
-
http-foundation/Session/Storage/MockFileSessionStorageFactory.php (added)
-
http-foundation/Session/Storage/NativeSessionStorage.php (added)
-
http-foundation/Session/Storage/NativeSessionStorageFactory.php (added)
-
http-foundation/Session/Storage/PhpBridgeSessionStorage.php (added)
-
http-foundation/Session/Storage/PhpBridgeSessionStorageFactory.php (added)
-
http-foundation/Session/Storage/Proxy (added)
-
http-foundation/Session/Storage/Proxy/AbstractProxy.php (added)
-
http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php (added)
-
http-foundation/Session/Storage/SessionStorageFactoryInterface.php (added)
-
http-foundation/Session/Storage/SessionStorageInterface.php (added)
-
http-foundation/StreamedJsonResponse.php (added)
-
http-foundation/StreamedResponse.php (added)
-
http-foundation/Test (added)
-
http-foundation/Test/Constraint (added)
-
http-foundation/Test/Constraint/RequestAttributeValueSame.php (added)
-
http-foundation/Test/Constraint/ResponseCookieValueSame.php (added)
-
http-foundation/Test/Constraint/ResponseFormatSame.php (added)
-
http-foundation/Test/Constraint/ResponseHasCookie.php (added)
-
http-foundation/Test/Constraint/ResponseHasHeader.php (added)
-
http-foundation/Test/Constraint/ResponseHeaderLocationSame.php (added)
-
http-foundation/Test/Constraint/ResponseHeaderSame.php (added)
-
http-foundation/Test/Constraint/ResponseIsRedirected.php (added)
-
http-foundation/Test/Constraint/ResponseIsSuccessful.php (added)
-
http-foundation/Test/Constraint/ResponseIsUnprocessable.php (added)
-
http-foundation/Test/Constraint/ResponseStatusCodeSame.php (added)
-
http-foundation/UriSigner.php (added)
-
http-foundation/UrlHelper.php (added)
-
mailer/Command/MailerTestCommand.php (modified) (1 diff)
-
mailer/Exception/UnsupportedSchemeException.php (modified) (1 diff)
-
mailer/Test/TransportFactoryTestCase.php (modified) (2 diffs)
-
mailer/Transport/RoundRobinTransport.php (modified) (3 diffs)
-
mime/Email.php (modified) (1 diff)
-
mime/MimeTypes.php (modified) (62 diffs)
-
mime/Part/AbstractPart.php (modified) (1 diff)
-
mime/Part/DataPart.php (modified) (3 diffs)
-
mime/Part/SMimePart.php (modified) (3 diffs)
-
mime/Part/TextPart.php (modified) (3 diffs)
-
polyfill-php83 (added)
-
polyfill-php83/LICENSE (added)
-
polyfill-php83/Php83.php (added)
-
polyfill-php83/Resources (added)
-
polyfill-php83/Resources/stubs (added)
-
polyfill-php83/Resources/stubs/DateError.php (added)
-
polyfill-php83/Resources/stubs/DateException.php (added)
-
polyfill-php83/Resources/stubs/DateInvalidOperationException.php (added)
-
polyfill-php83/Resources/stubs/DateInvalidTimeZoneException.php (added)
-
polyfill-php83/Resources/stubs/DateMalformedIntervalStringException.php (added)
-
polyfill-php83/Resources/stubs/DateMalformedPeriodStringException.php (added)
-
polyfill-php83/Resources/stubs/DateMalformedStringException.php (added)
-
polyfill-php83/Resources/stubs/DateObjectError.php (added)
-
polyfill-php83/Resources/stubs/DateRangeError.php (added)
-
polyfill-php83/Resources/stubs/Override.php (added)
-
polyfill-php83/Resources/stubs/SQLite3Exception.php (added)
-
polyfill-php83/bootstrap.php (added)
-
polyfill-php83/bootstrap81.php (added)
-
polyfill-php84 (added)
-
polyfill-php84/LICENSE (added)
-
polyfill-php84/Php84.php (added)
-
polyfill-php84/Resources (added)
-
polyfill-php84/Resources/stubs (added)
-
polyfill-php84/Resources/stubs/Deprecated.php (added)
-
polyfill-php84/Resources/stubs/ReflectionConstant.php (added)
-
polyfill-php84/bootstrap.php (added)
-
polyfill-php84/bootstrap82.php (added)
-
polyfill-php85 (added)
-
polyfill-php85/LICENSE (added)
-
polyfill-php85/Php85.php (added)
-
polyfill-php85/Resources (added)
-
polyfill-php85/Resources/stubs (added)
-
polyfill-php85/Resources/stubs/NoDiscard.php (added)
-
polyfill-php85/bootstrap.php (added)
-
service-contracts/ServiceSubscriberTrait.php (modified) (1 diff)
-
translation (added)
-
translation-contracts (added)
-
translation-contracts/LICENSE (added)
-
translation-contracts/LocaleAwareInterface.php (added)
-
translation-contracts/Test (added)
-
translation-contracts/Test/TranslatorTest.php (added)
-
translation-contracts/TranslatableInterface.php (added)
-
translation-contracts/TranslatorInterface.php (added)
-
translation-contracts/TranslatorTrait.php (added)
-
translation/Catalogue (added)
-
translation/Catalogue/AbstractOperation.php (added)
-
translation/Catalogue/MergeOperation.php (added)
-
translation/Catalogue/OperationInterface.php (added)
-
translation/Catalogue/TargetOperation.php (added)
-
translation/CatalogueMetadataAwareInterface.php (added)
-
translation/Command (added)
-
translation/Command/TranslationLintCommand.php (added)
-
translation/Command/TranslationPullCommand.php (added)
-
translation/Command/TranslationPushCommand.php (added)
-
translation/Command/TranslationTrait.php (added)
-
translation/Command/XliffLintCommand.php (added)
-
translation/DataCollector (added)
-
translation/DataCollector/TranslationDataCollector.php (added)
-
translation/DataCollectorTranslator.php (added)
-
translation/DependencyInjection (added)
-
translation/DependencyInjection/DataCollectorTranslatorPass.php (added)
-
translation/DependencyInjection/LoggingTranslatorPass.php (added)
-
translation/DependencyInjection/TranslationDumperPass.php (added)
-
translation/DependencyInjection/TranslationExtractorPass.php (added)
-
translation/DependencyInjection/TranslatorPass.php (added)
-
translation/DependencyInjection/TranslatorPathsPass.php (added)
-
translation/Dumper (added)
-
translation/Dumper/CsvFileDumper.php (added)
-
translation/Dumper/DumperInterface.php (added)
-
translation/Dumper/FileDumper.php (added)
-
translation/Dumper/IcuResFileDumper.php (added)
-
translation/Dumper/IniFileDumper.php (added)
-
translation/Dumper/JsonFileDumper.php (added)
-
translation/Dumper/MoFileDumper.php (added)
-
translation/Dumper/PhpFileDumper.php (added)
-
translation/Dumper/PoFileDumper.php (added)
-
translation/Dumper/QtFileDumper.php (added)
-
translation/Dumper/XliffFileDumper.php (added)
-
translation/Dumper/YamlFileDumper.php (added)
-
translation/Exception (added)
-
translation/Exception/ExceptionInterface.php (added)
-
translation/Exception/IncompleteDsnException.php (added)
-
translation/Exception/InvalidArgumentException.php (added)
-
translation/Exception/InvalidResourceException.php (added)
-
translation/Exception/LogicException.php (added)
-
translation/Exception/MissingRequiredOptionException.php (added)
-
translation/Exception/NotFoundResourceException.php (added)
-
translation/Exception/ProviderException.php (added)
-
translation/Exception/ProviderExceptionInterface.php (added)
-
translation/Exception/RuntimeException.php (added)
-
translation/Exception/UnsupportedSchemeException.php (added)
-
translation/Extractor (added)
-
translation/Extractor/AbstractFileExtractor.php (added)
-
translation/Extractor/ChainExtractor.php (added)
-
translation/Extractor/ExtractorInterface.php (added)
-
translation/Extractor/PhpAstExtractor.php (added)
-
translation/Extractor/Visitor (added)
-
translation/Extractor/Visitor/AbstractVisitor.php (added)
-
translation/Extractor/Visitor/ConstraintVisitor.php (added)
-
translation/Extractor/Visitor/TransMethodVisitor.php (added)
-
translation/Extractor/Visitor/TranslatableMessageVisitor.php (added)
-
translation/Formatter (added)
-
translation/Formatter/IntlFormatter.php (added)
-
translation/Formatter/IntlFormatterInterface.php (added)
-
translation/Formatter/MessageFormatter.php (added)
-
translation/Formatter/MessageFormatterInterface.php (added)
-
translation/IdentityTranslator.php (added)
-
translation/LICENSE (added)
-
translation/Loader (added)
-
translation/Loader/ArrayLoader.php (added)
-
translation/Loader/CsvFileLoader.php (added)
-
translation/Loader/FileLoader.php (added)
-
translation/Loader/IcuDatFileLoader.php (added)
-
translation/Loader/IcuResFileLoader.php (added)
-
translation/Loader/IniFileLoader.php (added)
-
translation/Loader/JsonFileLoader.php (added)
-
translation/Loader/LoaderInterface.php (added)
-
translation/Loader/MoFileLoader.php (added)
-
translation/Loader/PhpFileLoader.php (added)
-
translation/Loader/PoFileLoader.php (added)
-
translation/Loader/QtFileLoader.php (added)
-
translation/Loader/XliffFileLoader.php (added)
-
translation/Loader/YamlFileLoader.php (added)
-
translation/LocaleSwitcher.php (added)
-
translation/LoggingTranslator.php (added)
-
translation/MessageCatalogue.php (added)
-
translation/MessageCatalogueInterface.php (added)
-
translation/MetadataAwareInterface.php (added)
-
translation/Provider (added)
-
translation/Provider/AbstractProviderFactory.php (added)
-
translation/Provider/Dsn.php (added)
-
translation/Provider/FilteringProvider.php (added)
-
translation/Provider/NullProvider.php (added)
-
translation/Provider/NullProviderFactory.php (added)
-
translation/Provider/ProviderFactoryInterface.php (added)
-
translation/Provider/ProviderInterface.php (added)
-
translation/Provider/TranslationProviderCollection.php (added)
-
translation/Provider/TranslationProviderCollectionFactory.php (added)
-
translation/PseudoLocalizationTranslator.php (added)
-
translation/Reader (added)
-
translation/Reader/TranslationReader.php (added)
-
translation/Reader/TranslationReaderInterface.php (added)
-
translation/Resources (added)
-
translation/Resources/data (added)
-
translation/Resources/data/parents.json (added)
-
translation/Resources/functions.php (added)
-
translation/Resources/schemas (added)
-
translation/Resources/schemas/xliff-core-1.2-transitional.xsd (added)
-
translation/Resources/schemas/xliff-core-2.0.xsd (added)
-
translation/Resources/schemas/xml.xsd (added)
-
translation/StaticMessage.php (added)
-
translation/Test (added)
-
translation/Test/AbstractProviderFactoryTestCase.php (added)
-
translation/Test/IncompleteDsnTestTrait.php (added)
-
translation/Test/ProviderFactoryTestCase.php (added)
-
translation/Test/ProviderTestCase.php (added)
-
translation/TranslatableMessage.php (added)
-
translation/Translator.php (added)
-
translation/TranslatorBag.php (added)
-
translation/TranslatorBagInterface.php (added)
-
translation/Util (added)
-
translation/Util/ArrayConverter.php (added)
-
translation/Util/XliffUtils.php (added)
-
translation/Writer (added)
-
translation/Writer/TranslationWriter.php (added)
-
translation/Writer/TranslationWriterInterface.php (added)
Legend:
- Unmodified
- Added
- Removed
-
mailerpress/trunk/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php
r3333098 r3437941 66 66 $noPreload = 0; 67 67 68 $resolvedEvents = []; 68 69 foreach ($events as $event) { 69 $priority = $event['priority'] ?? 0;70 71 70 if (!isset($event['event'])) { 72 71 if ($container->getDefinition($id)->hasTag('kernel.event_subscriber')) { … … 75 74 76 75 $event['method'] ??= '__invoke'; 77 $event['event'] = $this->getEventFromTypeDeclaration($container, $id, $event['method']); 78 } 79 80 $event['event'] = $aliases[$event['event']] ?? $event['event']; 76 $eventNames = $this->getEventFromTypeDeclaration($container, $id, $event['method']); 77 } else { 78 $eventNames = [$event['event']]; 79 } 80 81 foreach ($eventNames as $eventName) { 82 $event['event'] = $aliases[$eventName] ?? $eventName; 83 $resolvedEvents[] = $event; 84 } 85 } 86 87 foreach ($resolvedEvents as $event) { 88 $priority = $event['priority'] ?? 0; 81 89 82 90 if (!isset($event['method'])) { … … 168 176 } 169 177 170 private function getEventFromTypeDeclaration(ContainerBuilder $container, string $id, string $method): string 178 /** 179 * @return string[] 180 */ 181 private function getEventFromTypeDeclaration(ContainerBuilder $container, string $id, string $method): array 171 182 { 172 183 if ( … … 175 186 || !$r->hasMethod($method) 176 187 || 1 > ($m = $r->getMethod($method))->getNumberOfParameters() 177 || !($type = $m->getParameters()[0]->getType()) instanceof \ReflectionNamedType 178 || $type->isBuiltin() 179 || Event::class === ($name = $type->getName()) 188 || !(($type = $m->getParameters()[0]->getType()) instanceof \ReflectionNamedType || $type instanceof \ReflectionUnionType) 180 189 ) { 181 190 throw new InvalidArgumentException(\sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id)); 182 191 } 183 192 184 return $name; 193 $types = $type instanceof \ReflectionUnionType ? $type->getTypes() : [$type]; 194 195 $names = []; 196 foreach ($types as $type) { 197 if (!$type instanceof \ReflectionNamedType 198 || $type->isBuiltin() 199 || Event::class === ($name = $type->getName()) 200 ) { 201 continue; 202 } 203 204 $names[] = $name; 205 } 206 207 if (!$names) { 208 throw new InvalidArgumentException(\sprintf('Service "%s" must define the "event" attribute on "kernel.event_listener" tags.', $id)); 209 } 210 211 return $names; 185 212 } 186 213 } -
mailerpress/trunk/vendor/symfony/mailer/Command/MailerTestCommand.php
r3361799 r3437941 41 41 ->addOption('transport', null, InputOption::VALUE_REQUIRED, 'The transport to be used') 42 42 ->setHelp(<<<'EOF' 43 The <info>%command.name%</info> command tests a Mailer transport by sending a simple email message:43 The <info>%command.name%</info> command tests a Mailer transport by sending a simple email message: 44 44 45 <info>php %command.full_name% to@example.com</info>45 <info>php %command.full_name% to@example.com</info> 46 46 47 You can also specify a specific transport:47 You can also specify a specific transport: 48 48 49 <info>php %command.full_name% to@example.com --transport=transport_name</info>49 <info>php %command.full_name% to@example.com --transport=transport_name</info> 50 50 51 Note that this command bypasses the Messenger bus if configured.51 Note that this command bypasses the Messenger bus if configured. 52 52 53 EOF53 EOF 54 54 ); 55 55 } -
mailerpress/trunk/vendor/symfony/mailer/Exception/UnsupportedSchemeException.php
r3333098 r3437941 77 77 'package' => 'symfony/mailtrap-mailer', 78 78 ], 79 'microsoftgraph' => [ 80 'class' => Bridge\MicrosoftGraph\Transport\MicrosoftGraphTransportFactory::class, 81 'package' => 'symfony/microsoft-graph-mailer', 82 ], 79 83 'resend' => [ 80 84 'class' => Bridge\Resend\Transport\ResendTransportFactory::class, -
mailerpress/trunk/vendor/symfony/mailer/Test/TransportFactoryTestCase.php
r3333098 r3437941 13 13 14 14 use Psr\Log\LoggerInterface; 15 use Psr\Log\NullLogger; 16 use Symfony\Component\EventDispatcher\EventDispatcher; 17 use Symfony\Component\HttpClient\MockHttpClient; 15 18 use Symfony\Component\Mailer\Transport\Dsn; 16 19 use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; … … 50 53 protected function getDispatcher(): EventDispatcherInterface 51 54 { 52 return $this->dispatcher ??= $this->createMock(EventDispatcherInterface::class);55 return $this->dispatcher ??= new EventDispatcher(); 53 56 } 54 57 55 58 protected function getClient(): HttpClientInterface 56 59 { 57 return $this->client ??= $this->createMock(HttpClientInterface::class);60 return $this->client ??= new MockHttpClient(); 58 61 } 59 62 60 63 protected function getLogger(): LoggerInterface 61 64 { 62 return $this->logger ??= $this->createMock(LoggerInterface::class);65 return $this->logger ??= new NullLogger(); 63 66 } 64 67 } -
mailerpress/trunk/vendor/symfony/mailer/Transport/RoundRobinTransport.php
r3361799 r3437941 12 12 namespace Symfony\Component\Mailer\Transport; 13 13 14 use Psr\Log\LoggerInterface; 15 use Psr\Log\NullLogger; 14 16 use Symfony\Component\Mailer\Envelope; 15 17 use Symfony\Component\Mailer\Exception\TransportException; … … 37 39 private array $transports, 38 40 private int $retryPeriod = 60, 41 private LoggerInterface $logger = new NullLogger(), 39 42 ) { 40 43 if (!$transports) { … … 55 58 $exception ??= new TransportException('All transports failed.'); 56 59 $exception->appendDebug(\sprintf("Transport \"%s\": %s\n", $transport, $e->getDebug())); 60 $this->logger->error(\sprintf('Transport "%s" failed.', $transport), ['exception' => $e]); 57 61 $this->deadTransports[$transport] = microtime(true); 58 62 } -
mailerpress/trunk/vendor/symfony/mime/Email.php
r3333098 r3437941 493 493 494 494 if ($name !== $part->getContentId()) { 495 $html = str_replace('cid:'.$name, 'cid:'.$part->getContentId(), $html , $count);495 $html = str_replace('cid:'.$name, 'cid:'.$part->getContentId(), $html); 496 496 } 497 497 $relatedParts[$name] = $part; -
mailerpress/trunk/vendor/symfony/mime/MimeTypes.php
r3333098 r3437941 136 136 * A map of MIME types and their default extensions. 137 137 * 138 * Updated from upstream on 202 4-11-09.138 * Updated from upstream on 2025-11-15. 139 139 * 140 140 * @see Resources/bin/update_mime_types.php … … 159 159 'application/bat' => ['bat'], 160 160 'application/bdoc' => ['bdoc'], 161 'application/buildstream+yaml' => ['bst'], 161 162 'application/bzip2' => ['bz2', 'bz'], 162 163 'application/calendar+xml' => ['xcs'], … … 204 205 'application/gxf' => ['gxf'], 205 206 'application/gzip' => ['gz'], 207 'application/har+json' => ['har'], 206 208 'application/hjson' => ['hjson'], 207 209 'application/hta' => ['hta'], … … 218 220 'application/java-serialized-object' => ['ser'], 219 221 'application/java-vm' => ['class'], 220 'application/javascript' => ['js', ' jsm', 'mjs'],222 'application/javascript' => ['js', 'cjs', 'jsm', 'mjs'], 221 223 'application/jrd+json' => ['jrd'], 222 224 'application/json' => ['json', 'map'], … … 339 341 'application/sparql-query' => ['rq', 'qs'], 340 342 'application/sparql-results+xml' => ['srx'], 343 'application/spdx+json' => ['spdx.json'], 341 344 'application/sql' => ['sql'], 342 345 'application/srgs' => ['gram'], … … 354 357 'application/trig' => ['trig'], 355 358 'application/ttml+xml' => ['ttml'], 359 'application/typescript' => ['cts', 'mts', 'ts'], 356 360 'application/ubjson' => ['ubj'], 357 361 'application/urc-ressheet+xml' => ['rsheet'], … … 394 398 'application/vnd.apple.pages' => ['pages'], 395 399 'application/vnd.apple.pkpass' => ['pkpass'], 400 'application/vnd.apple.pkpasses' => ['pkpasses'], 396 401 'application/vnd.aristanetworks.swi' => ['swi'], 397 402 'application/vnd.astraea-software.iota' => ['iota'], … … 428 433 'application/vnd.curl.car' => ['car'], 429 434 'application/vnd.curl.pcurl' => ['pcurl'], 435 'application/vnd.cyclonedx+json' => ['cdx.json'], 436 'application/vnd.cyclonedx+xml' => ['cdx.xml'], 430 437 'application/vnd.dart' => ['dart'], 431 438 'application/vnd.data-vision.rdz' => ['rdz'], … … 810 817 'application/x-ace' => ['ace'], 811 818 'application/x-ace-compressed' => ['ace'], 819 'application/x-alpine-package-keeper-package' => ['apk'], 812 820 'application/x-alz' => ['alz'], 821 'application/x-amf' => ['amf'], 813 822 'application/x-amiga-disk-format' => ['adf'], 814 823 'application/x-amipro' => ['sam'], … … 927 936 'application/x-frame' => ['fm'], 928 937 'application/x-freearc' => ['arc'], 938 'application/x-freedesktop-appstream-component' => ['metainfo.xml', 'appdata.xml'], 939 'application/x-freedesktop-appstream-releases' => ['releases.xml'], 929 940 'application/x-futuresplash' => ['spl'], 930 941 'application/x-gameboy-color-rom' => ['gbc', 'cgb'], … … 991 1002 'application/x-java-pack200' => ['pack'], 992 1003 'application/x-java-vm' => ['class'], 993 'application/x-javascript' => ['js', ' jsm', 'mjs'],1004 'application/x-javascript' => ['js', 'cjs', 'jsm', 'mjs'], 994 1005 'application/x-jbuilder-project' => ['jpr', 'jpx'], 995 1006 'application/x-karbon' => ['karbon'], … … 1100 1111 'application/x-pc-engine-rom' => ['pce'], 1101 1112 'application/x-pcap' => ['pcap', 'cap', 'dmp'], 1102 'application/x-pcapng' => ['pcapng', ' ntar'],1113 'application/x-pcapng' => ['pcapng', 'scap', 'ntar'], 1103 1114 'application/x-pdf' => ['pdf'], 1104 1115 'application/x-perl' => ['pl', 'pm', 'PL', 'al', 'perl', 'pod', 't'], … … 1259 1270 'application/x-zpaq' => ['zpaq'], 1260 1271 'application/x-zstd-compressed-tar' => ['tar.zst', 'tzst'], 1272 'application/x.sf3-archive' => ['ar.sf3', 'sf3'], 1273 'application/x.sf3-log' => ['log.sf3', 'sf3'], 1274 'application/x.sf3-table' => ['tab.sf3', 'sf3'], 1275 'application/x.sf3-text' => ['txt.sf3', 'sf3'], 1261 1276 'application/xaml+xml' => ['xaml'], 1262 1277 'application/xcap-att+xml' => ['xav'], … … 1352 1367 'audio/x-dsd' => ['dsf'], 1353 1368 'audio/x-dsf' => ['dsf'], 1369 'audio/x-dsp' => ['dsm', 'dsp'], 1354 1370 'audio/x-dts' => ['dts'], 1355 1371 'audio/x-dtshd' => ['dtshd'], … … 1411 1427 'audio/x-xm' => ['xm'], 1412 1428 'audio/x-xmf' => ['xmf'], 1429 'audio/x.sf3' => ['au.sf3', 'sf3'], 1413 1430 'audio/xm' => ['xm'], 1414 1431 'audio/xmf' => ['xmf'], … … 1510 1527 'image/vnd.net-fpx' => ['npx'], 1511 1528 'image/vnd.pco.b16' => ['b16'], 1529 'image/vnd.radiance' => ['hdr', 'pic', 'rgbe', 'xyze'], 1512 1530 'image/vnd.rn-realpix' => ['rp'], 1513 1531 'image/vnd.tencent.tap' => ['tap'], … … 1543 1561 'image/x-gimp-pat' => ['pat'], 1544 1562 'image/x-gzeps' => ['eps.gz', 'epsi.gz', 'epsf.gz'], 1563 'image/x-hdr' => ['hdr', 'pic', 'rgbe', 'xyze'], 1545 1564 'image/x-icb' => ['tga', 'icb', 'tpic', 'vda', 'vst'], 1546 1565 'image/x-icns' => ['icns'], … … 1573 1592 'image/x-pentax-pef' => ['pef'], 1574 1593 'image/x-pfm' => ['pfm'], 1594 'image/x-phm' => ['phm'], 1575 1595 'image/x-photo-cd' => ['pcd'], 1576 1596 'image/x-photoshop' => ['psd'], … … 1604 1624 'image/x-xwindowdump' => ['xwd'], 1605 1625 'image/x.djvu' => ['djvu', 'djv'], 1626 'image/x.sf3' => ['img.sf3', 'sf3'], 1627 'image/x.sf3-vector' => ['vec.sf3', 'sf3'], 1606 1628 'message/disposition-notification' => ['disposition-notification'], 1607 1629 'message/global' => ['u8msg'], … … 1643 1665 'model/vnd.vtu' => ['vtu'], 1644 1666 'model/vrml' => ['wrl', 'vrml', 'vrm'], 1667 'model/x.sf3' => ['mod.sf3', 'sf3'], 1668 'model/x.sf3-physics' => ['phys.sf3', 'sf3'], 1645 1669 'model/x.stl-ascii' => ['stl'], 1646 1670 'model/x.stl-binary' => ['stl'], … … 1664 1688 'text/ico' => ['ico'], 1665 1689 'text/jade' => ['jade'], 1666 'text/javascript' => ['js', 'mjs', ' jsm'],1667 'text/jscript' => [' js', 'jsm', 'mjs'],1690 'text/javascript' => ['js', 'mjs', 'cjs', 'jsm'], 1691 'text/jscript' => ['cjs', 'js', 'jsm', 'mjs'], 1668 1692 'text/jscript.encode' => ['jse'], 1669 1693 'text/jsx' => ['jsx'], … … 1713 1737 'text/vnd.sun.j2me.app-descriptor' => ['jad'], 1714 1738 'text/vnd.trolltech.linguist' => ['ts'], 1739 'text/vnd.typst' => ['typ'], 1715 1740 'text/vnd.wap.wml' => ['wml'], 1716 1741 'text/vnd.wap.wmlscript' => ['wmls'], … … 1742 1767 'text/x-devicetree-source' => ['dts', 'dtsi'], 1743 1768 'text/x-diff' => ['diff', 'patch'], 1769 'text/x-dockerfile' => ['Dockerfile'], 1744 1770 'text/x-dsl' => ['dsl'], 1745 1771 'text/x-dsrc' => ['d', 'di'], … … 1786 1812 'text/x-mrml' => ['mrml', 'mrl'], 1787 1813 'text/x-ms-regedit' => ['reg'], 1814 'text/x-ms-visualstudio.project' => ['dsp'], 1815 'text/x-ms-visualstudio.workspace' => ['dsw'], 1788 1816 'text/x-mup' => ['mup', 'not'], 1789 1817 'text/x-nfo' => ['nfo'], … … 1791 1819 'text/x-nimscript' => ['nims', 'nimble'], 1792 1820 'text/x-nix' => ['nix'], 1821 'text/x-nsis' => ['nsi', 'nsh'], 1793 1822 'text/x-nu' => ['nu'], 1823 'text/x-nushell' => ['nu'], 1794 1824 'text/x-objc++src' => ['mm'], 1795 1825 'text/x-objcsrc' => ['m'], … … 1798 1828 'text/x-octave' => ['m'], 1799 1829 'text/x-ooc' => ['ooc'], 1830 'text/x-opencl-c++src' => ['clcpp'], 1831 'text/x-opencl-csrc' => ['cl'], 1800 1832 'text/x-opencl-src' => ['cl'], 1801 1833 'text/x-opml' => ['opml'], … … 1815 1847 'text/x-rpm-spec' => ['spec'], 1816 1848 'text/x-rst' => ['rst'], 1849 'text/x-ruby' => ['rb'], 1817 1850 'text/x-sagemath' => ['sage'], 1818 1851 'text/x-sass' => ['sass'], … … 1825 1858 'text/x-sql' => ['sql'], 1826 1859 'text/x-ssa' => ['ssa', 'ass'], 1860 'text/x-ssh-public-key' => ['pub'], 1827 1861 'text/x-subviewer' => ['sub'], 1828 1862 'text/x-suse-ymp' => ['ymp'], … … 1873 1907 'video/mj2' => ['mj2', 'mjp2'], 1874 1908 'video/mp2t' => ['ts', 'm2t', 'm2ts', 'mts', 'cpi', 'clpi', 'mpl', 'mpls', 'bdm', 'bdmv'], 1875 'video/mp4' => ['mp4', 'mp4v', 'mpg4', 'm4v', 'f4v', 'lrv' ],1876 'video/mp4v-es' => ['mp4', 'm4v', 'f4v', 'lrv' ],1909 'video/mp4' => ['mp4', 'mp4v', 'mpg4', 'm4v', 'f4v', 'lrv', 'lrf'], 1910 'video/mp4v-es' => ['mp4', 'm4v', 'f4v', 'lrv', 'lrf'], 1877 1911 'video/mpeg' => ['mpeg', 'mpg', 'mpe', 'm1v', 'm2v', 'mp2', 'vob'], 1878 1912 'video/mpeg-system' => ['mpeg', 'mpg', 'mp2', 'mpe', 'vob'], … … 1908 1942 'video/x-flv' => ['flv'], 1909 1943 'video/x-javafx' => ['fxm'], 1910 'video/x-m4v' => ['m4v', 'mp4', 'f4v', 'lrv' ],1944 'video/x-m4v' => ['m4v', 'mp4', 'f4v', 'lrv', 'lrf'], 1911 1945 'video/x-matroska' => ['mkv', 'mk3d', 'mks'], 1912 1946 'video/x-matroska-3d' => ['mk3d'], … … 1966 2000 '7z.001' => ['application/x-7z-compressed'], 1967 2001 'C' => ['text/x-c++src'], 2002 'Dockerfile' => ['text/x-dockerfile'], 1968 2003 'PAR2' => ['application/x-par2'], 1969 2004 'PL' => ['application/x-perl', 'text/x-perl'], … … 2009 2044 'al' => ['application/x-perl', 'text/x-perl'], 2010 2045 'alz' => ['application/x-alz'], 2046 'amf' => ['application/x-amf'], 2011 2047 'ami' => ['application/vnd.amiga.ami'], 2012 2048 'aml' => ['application/automationml-aml+xml'], … … 2027 2063 'anx' => ['application/annodex', 'application/x-annodex'], 2028 2064 'ape' => ['audio/x-ape'], 2029 'apk' => ['application/vnd.android.package-archive' ],2065 'apk' => ['application/vnd.android.package-archive', 'application/x-alpine-package-keeper-package'], 2030 2066 'apng' => ['image/apng', 'image/vnd.mozilla.apng'], 2031 2067 'appcache' => ['text/cache-manifest'], 2068 'appdata.xml' => ['application/x-freedesktop-appstream-component'], 2032 2069 'appimage' => ['application/vnd.appimage', 'application/x-iso9660-appimage'], 2033 2070 'appinstaller' => ['application/appinstaller'], … … 2037 2074 'apr' => ['application/vnd.lotus-approach'], 2038 2075 'ar' => ['application/x-archive'], 2076 'ar.sf3' => ['application/x.sf3-archive'], 2039 2077 'arc' => ['application/x-freearc'], 2040 2078 'arj' => ['application/x-arj'], … … 2059 2097 'atx' => ['application/vnd.antix.game-component'], 2060 2098 'au' => ['audio/basic'], 2099 'au.sf3' => ['audio/x.sf3'], 2061 2100 'automount' => ['text/x-systemd-unit'], 2062 2101 'avci' => ['image/avci'], … … 2108 2147 'bsdiff' => ['application/x-bsdiff'], 2109 2148 'bsp' => ['model/vnd.valve.source.compiled-map'], 2149 'bst' => ['application/buildstream+yaml'], 2110 2150 'btf' => ['image/prs.btif'], 2111 2151 'btif' => ['image/prs.btif'], … … 2152 2192 'cdr' => ['application/cdr', 'application/coreldraw', 'application/vnd.corel-draw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'], 2153 2193 'cdx' => ['chemical/x-cdx'], 2194 'cdx.json' => ['application/vnd.cyclonedx+json'], 2195 'cdx.xml' => ['application/vnd.cyclonedx+xml'], 2154 2196 'cdxml' => ['application/vnd.chemdraw+xml'], 2155 2197 'cdy' => ['application/vnd.cinderella'], … … 2167 2209 'cii' => ['application/vnd.anser-web-certificate-issue-initiation'], 2168 2210 'cil' => ['application/vnd.ms-artgalry'], 2169 'cjs' => ['application/ node'],2170 'cl' => ['text/x-opencl- src'],2211 'cjs' => ['application/javascript', 'application/node', 'application/x-javascript', 'text/javascript', 'text/jscript'], 2212 'cl' => ['text/x-opencl-csrc', 'text/x-opencl-src'], 2171 2213 'cla' => ['application/vnd.claymore'], 2172 2214 'class' => ['application/java', 'application/java-byte-code', 'application/java-vm', 'application/x-java', 'application/x-java-class', 'application/x-java-vm'], 2215 'clcpp' => ['text/x-opencl-c++src'], 2173 2216 'cld' => ['model/vnd.cld'], 2174 2217 'clkk' => ['application/vnd.crick.clicker.keyboard'], … … 2217 2260 'csv' => ['text/csv', 'application/csv', 'text/x-comma-separated-values', 'text/x-csv'], 2218 2261 'csvs' => ['text/csv-schema'], 2262 'cts' => ['application/typescript'], 2219 2263 'cu' => ['application/cu-seeme'], 2220 2264 'cue' => ['application/x-cue'], … … 2285 2329 'dsf' => ['audio/dsd', 'audio/dsf', 'audio/x-dsd', 'audio/x-dsf'], 2286 2330 'dsl' => ['text/x-dsl'], 2331 'dsm' => ['audio/x-dsp'], 2332 'dsp' => ['audio/x-dsp', 'text/x-ms-visualstudio.project'], 2287 2333 'dssc' => ['application/dssc+der'], 2334 'dsw' => ['text/x-ms-visualstudio.workspace'], 2288 2335 'dtb' => ['application/x-dtbook+xml', 'text/x-devicetree-binary'], 2289 2336 'dtd' => ['application/xml-dtd', 'text/x-dtd'], … … 2507 2554 'h5' => ['application/x-hdf'], 2508 2555 'hal' => ['application/vnd.hal+xml'], 2556 'har' => ['application/har+json'], 2509 2557 'hbci' => ['application/vnd.hbci'], 2510 2558 'hbs' => ['text/x-handlebars-template'], … … 2514 2562 'hdf5' => ['application/x-hdf'], 2515 2563 'hdp' => ['image/jxr', 'image/vnd.ms-photo'], 2564 'hdr' => ['image/vnd.radiance', 'image/x-hdr'], 2516 2565 'heic' => ['image/heic', 'image/heic-sequence', 'image/heif', 'image/heif-sequence'], 2517 2566 'heics' => ['image/heic-sequence'], … … 2568 2617 'ime' => ['audio/imelody', 'audio/x-imelody', 'text/x-imelody'], 2569 2618 'img' => ['application/vnd.efi.img', 'application/x-raw-disk-image'], 2619 'img.sf3' => ['image/x.sf3'], 2570 2620 'img.xz' => ['application/x-raw-disk-image-xz-compressed'], 2571 2621 'imp' => ['application/vnd.accpac.simply.imp'], … … 2710 2760 'loas' => ['audio/usac'], 2711 2761 'log' => ['text/plain', 'text/x-log'], 2762 'log.sf3' => ['application/x.sf3-log'], 2712 2763 'lostxml' => ['application/lost+xml'], 2713 'lrf' => ['application/x-sony-bbeb' ],2764 'lrf' => ['application/x-sony-bbeb', 'video/mp4', 'video/mp4v-es', 'video/x-m4v'], 2714 2765 'lrm' => ['application/vnd.ms-lrm'], 2715 2766 'lrv' => ['video/mp4', 'video/mp4v-es', 'video/x-m4v'], … … 2781 2832 'mesh' => ['model/mesh'], 2782 2833 'meta4' => ['application/metalink4+xml'], 2834 'metainfo.xml' => ['application/x-freedesktop-appstream-component'], 2783 2835 'metalink' => ['application/metalink+xml'], 2784 2836 'mets' => ['application/mets+xml'], … … 2821 2873 'moc' => ['text/x-moc'], 2822 2874 'mod' => ['application/x-object', 'audio/x-mod'], 2875 'mod.sf3' => ['model/x.sf3'], 2823 2876 'mods' => ['application/mods+xml'], 2824 2877 'mof' => ['text/x-mof'], … … 2877 2930 'mtl' => ['model/mtl'], 2878 2931 'mtm' => ['audio/x-mod'], 2879 'mts' => [' model/vnd.mts', 'video/mp2t'],2932 'mts' => ['application/typescript', 'model/vnd.mts', 'video/mp2t'], 2880 2933 'mup' => ['text/x-mup'], 2881 2934 'mus' => ['application/vnd.musician'], … … 2922 2975 'nsc' => ['application/x-conference', 'application/x-netshow-channel'], 2923 2976 'nsf' => ['application/vnd.lotus-notes'], 2977 'nsh' => ['text/x-nsis'], 2978 'nsi' => ['text/x-nsis'], 2924 2979 'nsv' => ['video/x-nsv'], 2925 2980 'nt' => ['application/n-triples'], 2926 2981 'ntar' => ['application/x-pcapng'], 2927 2982 'ntf' => ['application/vnd.nitf'], 2928 'nu' => ['application/x-nuscript', 'text/x-nu' ],2983 'nu' => ['application/x-nuscript', 'text/x-nu', 'text/x-nushell'], 2929 2984 'numbers' => ['application/vnd.apple.numbers', 'application/x-iwork-numbers-sffnumbers'], 2930 2985 'nzb' => ['application/x-nzb'], … … 3046 3101 'pgn' => ['application/vnd.chess-pgn', 'application/x-chess-pgn'], 3047 3102 'pgp' => ['application/pgp', 'application/pgp-encrypted', 'application/pgp-keys', 'application/pgp-signature'], 3103 'phm' => ['image/x-phm'], 3048 3104 'php' => ['application/x-php', 'application/x-httpd-php'], 3049 3105 'php3' => ['application/x-php'], … … 3051 3107 'php5' => ['application/x-php'], 3052 3108 'phps' => ['application/x-php'], 3053 'pic' => ['image/x-pict'], 3109 'phys.sf3' => ['model/x.sf3-physics'], 3110 'pic' => ['image/vnd.radiance', 'image/x-hdr', 'image/x-pict'], 3054 3111 'pict' => ['image/x-pict'], 3055 3112 'pict1' => ['image/x-pict'], … … 3060 3117 'pkipath' => ['application/pkix-pkipath'], 3061 3118 'pkpass' => ['application/vnd.apple.pkpass'], 3119 'pkpasses' => ['application/vnd.apple.pkpasses'], 3062 3120 'pkr' => ['application/pgp-keys'], 3063 3121 'pl' => ['application/x-perl', 'text/x-perl'], … … 3111 3169 'pti' => ['image/prs.pti'], 3112 3170 'ptid' => ['application/vnd.pvi.ptid1'], 3113 'pub' => ['application/vnd.ms-publisher', 'application/x-mspublisher' ],3171 'pub' => ['application/vnd.ms-publisher', 'application/x-mspublisher', 'text/x-ssh-public-key'], 3114 3172 'pvb' => ['application/vnd.3gpp.pic-bw-var'], 3115 3173 'pw' => ['application/x-pw'], … … 3171 3229 'raw-disk-image.xz' => ['application/x-raw-disk-image-xz-compressed'], 3172 3230 'rax' => ['audio/vnd.m-realaudio', 'audio/vnd.rn-realaudio', 'audio/x-pn-realaudio'], 3173 'rb' => ['application/x-ruby' ],3231 'rb' => ['application/x-ruby', 'text/x-ruby'], 3174 3232 'rcprofile' => ['application/vnd.ipunplugged.rcprofile'], 3175 3233 'rdf' => ['application/rdf+xml', 'text/rdf'], … … 3178 3236 'reg' => ['text/x-ms-regedit'], 3179 3237 'rej' => ['application/x-reject', 'text/x-reject'], 3238 'releases.xml' => ['application/x-freedesktop-appstream-releases'], 3180 3239 'relo' => ['application/p2p-overlay+xml'], 3181 3240 'rep' => ['application/vnd.businessobjects'], 3182 3241 'res' => ['application/x-dtbresource+xml', 'application/x-godot-resource'], 3183 3242 'rgb' => ['image/x-rgb'], 3243 'rgbe' => ['image/vnd.radiance', 'image/x-hdr'], 3184 3244 'rif' => ['application/reginfo+xml'], 3185 3245 'rip' => ['audio/vnd.rip'], … … 3235 3295 'sc' => ['application/vnd.ibm.secure-container', 'text/x-scala'], 3236 3296 'scala' => ['text/x-scala'], 3297 'scap' => ['application/x-pcapng'], 3237 3298 'scd' => ['application/x-msschedule'], 3238 3299 'scm' => ['application/vnd.lotus-screencam', 'text/x-scheme'], … … 3266 3327 'setpay' => ['application/set-payment-initiation'], 3267 3328 'setreg' => ['application/set-registration-initiation'], 3329 'sf3' => ['application/x.sf3-archive', 'application/x.sf3-log', 'application/x.sf3-table', 'application/x.sf3-text', 'audio/x.sf3', 'image/x.sf3', 'image/x.sf3-vector', 'model/x.sf3', 'model/x.sf3-physics'], 3268 3330 'sfc' => ['application/vnd.nintendo.snes.rom', 'application/x-snes-rom'], 3269 3331 'sfd-hdstx' => ['application/vnd.hydrostatix.sof-data'], … … 3332 3394 'spd' => ['application/x-font-speedo'], 3333 3395 'spdx' => ['text/spdx'], 3396 'spdx.json' => ['application/spdx+json'], 3334 3397 'spec' => ['text/x-rpm-spec'], 3335 3398 'spf' => ['application/vnd.yamaha.smaf-phrase'], … … 3408 3471 't3' => ['application/x-t3vm-image'], 3409 3472 't38' => ['image/t38'], 3473 'tab.sf3' => ['application/x.sf3-table'], 3410 3474 'taglet' => ['application/vnd.mynfc'], 3411 3475 'tak' => ['audio/x-tak'], … … 3472 3536 'trm' => ['application/x-msterminal'], 3473 3537 'trz' => ['application/x-rzip-compressed-tar'], 3474 'ts' => ['application/ x-linguist', 'text/vnd.qt.linguist', 'text/vnd.trolltech.linguist', 'video/mp2t'],3538 'ts' => ['application/typescript', 'application/x-linguist', 'text/vnd.qt.linguist', 'text/vnd.trolltech.linguist', 'video/mp2t'], 3475 3539 'tscn' => ['application/x-godot-scene'], 3476 3540 'tsd' => ['application/timestamped-data'], … … 3489 3553 'txf' => ['application/vnd.mobius.txf'], 3490 3554 'txt' => ['text/plain'], 3555 'txt.sf3' => ['application/x.sf3-text'], 3491 3556 'txz' => ['application/x-xz-compressed-tar'], 3492 'typ' => ['text/ x-typst'],3557 'typ' => ['text/vnd.typst', 'text/x-typst'], 3493 3558 'tzo' => ['application/x-tzo'], 3494 3559 'tzst' => ['application/x-zstd-compressed-tar'], … … 3572 3637 'vdi' => ['application/x-vdi-disk', 'application/x-virtualbox-vdi'], 3573 3638 'vds' => ['model/vnd.sap.vds'], 3639 'vec.sf3' => ['image/x.sf3-vector'], 3574 3640 'vhd' => ['application/x-vhd-disk', 'application/x-virtualbox-vhd', 'text/x-vhdl'], 3575 3641 'vhdl' => ['text/x-vhdl'], … … 3757 3823 'xwd' => ['image/x-xwindowdump'], 3758 3824 'xyz' => ['chemical/x-xyz'], 3825 'xyze' => ['image/vnd.radiance', 'image/x-hdr'], 3759 3826 'xz' => ['application/x-xz'], 3760 3827 'yaml' => ['application/yaml', 'application/x-yaml', 'text/x-yaml', 'text/yaml'], -
mailerpress/trunk/vendor/symfony/mime/Part/AbstractPart.php
r3333098 r3437941 63 63 64 64 abstract public function getMediaSubtype(): string; 65 66 public function __serialize(): array 67 { 68 if (!method_exists($this, '__sleep')) { 69 return ['headers' => $this->headers]; 70 } 71 72 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 73 74 $data = []; 75 foreach ($this->__sleep() as $key) { 76 try { 77 if (($r = new \ReflectionProperty($this, $key))->isInitialized($this)) { 78 $data[$key] = $r->getValue($this); 79 } 80 } catch (\ReflectionException) { 81 $data[$key] = $this->$key; 82 } 83 } 84 85 return $data; 86 } 87 88 public function __unserialize(array $data): void 89 { 90 if ($wakeup = method_exists($this, '__wakeup') && self::class === (new \ReflectionMethod($this, '__unserialize'))->class) { 91 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this)); 92 } 93 94 if (['headers'] === array_keys($data)) { 95 $this->headers = $data['headers']; 96 97 if ($wakeup) { 98 $this->__wakeup(); 99 } 100 101 return; 102 } 103 104 trigger_deprecation('symfony/mime', '7.4', 'Passing more than just key "headers" to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this)); 105 106 \Closure::bind(function ($data) use ($wakeup) { 107 foreach ($data as $key => $value) { 108 $this->{("\0" === $key[0] ?? '') ? substr($key, 1 + strrpos($key, "\0")) : $key} = $value; 109 } 110 111 if ($wakeup) { 112 $this->__wakeup(); 113 } 114 }, $this, static::class)($data); 115 } 65 116 } -
mailerpress/trunk/vendor/symfony/mime/Part/DataPart.php
r3333098 r3437941 20 20 class DataPart extends TextPart 21 21 { 22 /** @internal */22 /** @internal, to be removed in 8.0 */ 23 23 protected array $_parent; 24 24 … … 130 130 } 131 131 132 public function __serialize(): array 133 { 134 if (self::class === (new \ReflectionMethod($this, '__sleep'))->class || self::class !== (new \ReflectionMethod($this, '__serialize'))->class) { 135 $parent = parent::__serialize(); 136 $headers = $parent['_headers']; 137 unset($parent['_headers']); 138 139 return [ 140 '_headers' => $headers, 141 '_parent' => $parent, 142 'filename' => $this->filename, 143 'mediaType' => $this->mediaType, 144 ]; 145 } 146 147 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 148 149 $data = []; 150 foreach ($this->__sleep() as $key) { 151 try { 152 if (($r = new \ReflectionProperty($this, $key))->isInitialized($this)) { 153 $data[$key] = $r->getValue($this); 154 } 155 } catch (\ReflectionException) { 156 $data[$key] = $this->$key; 157 } 158 } 159 160 return $data; 161 } 162 163 public function __unserialize(array $data): void 164 { 165 if ($wakeup = self::class !== (new \ReflectionMethod($this, '__wakeup'))->class && self::class === (new \ReflectionMethod($this, '__unserialize'))->class) { 166 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this)); 167 } 168 169 if (['_headers', '_parent', 'filename', 'mediaType'] === array_keys($data)) { 170 parent::__unserialize(['_headers' => $data['_headers'], ...$data['_parent']]); 171 $this->filename = $data['filename']; 172 $this->mediaType = $data['mediaType']; 173 174 if ($wakeup) { 175 $this->__wakeup(); 176 } 177 178 return; 179 } 180 181 if (["\0*\0_headers", "\0*\0_parent", "\0".self::class."\0filename", "\0".self::class."\0mediaType"] === array_keys($data)) { 182 parent::__unserialize(['_headers' => $data["\0*\0_headers"], ...$data["\0*\0_parent"]]); 183 $this->filename = $data["\0".self::class."\0filename"]; 184 $this->mediaType = $data["\0".self::class."\0mediaType"]; 185 186 if ($wakeup) { 187 $this->__wakeup(); 188 } 189 190 return; 191 } 192 193 trigger_deprecation('symfony/mime', '7.4', 'Passing extra keys to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this)); 194 195 \Closure::bind(function ($data) use ($wakeup) { 196 foreach ($data as $key => $value) { 197 $this->{("\0" === $key[0] ?? '') ? substr($key, 1 + strrpos($key, "\0")) : $key} = $value; 198 } 199 200 if ($wakeup) { 201 $this->__wakeup(); 202 } 203 }, $this, static::class)($data); 204 } 205 206 /** 207 * @deprecated since Symfony 7.4, will be replaced by `__serialize()` in 8.0 208 */ 132 209 public function __sleep(): array 133 210 { 211 trigger_deprecation('symfony/mime', '7.4', 'Calling "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 134 212 // converts the body to a string 135 213 parent::__sleep(); … … 145 223 } 146 224 225 /** 226 * @deprecated since Symfony 7.4, will be replaced by `__unserialize()` in 8.0 227 */ 147 228 public function __wakeup(): void 148 229 { -
mailerpress/trunk/vendor/symfony/mime/Part/SMimePart.php
r3333098 r3437941 19 19 class SMimePart extends AbstractPart 20 20 { 21 /** @internal */21 /** @internal, to be removed in 8.0 */ 22 22 protected Headers $_headers; 23 23 … … 85 85 } 86 86 87 public function __serialize(): array 88 { 89 if (self::class === (new \ReflectionMethod($this, '__sleep'))->class || self::class !== (new \ReflectionMethod($this, '__serialize'))->class) { 90 // convert iterables to strings for serialization 91 if (is_iterable($this->body)) { 92 $this->body = $this->bodyToString(); 93 } 94 95 return [ 96 '_headers' => $this->getHeaders(), 97 'body' => $this->body, 98 'type' => $this->type, 99 'subtype' => $this->subtype, 100 'parameters' => $this->parameters, 101 ]; 102 } 103 104 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 105 106 $data = []; 107 foreach ($this->__sleep() as $key) { 108 try { 109 if (($r = new \ReflectionProperty($this, $key))->isInitialized($this)) { 110 $data[$key] = $r->getValue($this); 111 } 112 } catch (\ReflectionException) { 113 $data[$key] = $this->$key; 114 } 115 } 116 117 return $data; 118 } 119 120 public function __unserialize(array $data): void 121 { 122 if ($wakeup = self::class !== (new \ReflectionMethod($this, '__wakeup'))->class && self::class === (new \ReflectionMethod($this, '__unserialize'))->class) { 123 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this)); 124 } 125 126 if (['_headers', 'body', 'type', 'subtype', 'parameters'] === array_keys($data)) { 127 parent::__unserialize(['headers' => $data['_headers']]); 128 $this->body = $data['body']; 129 $this->type = $data['type']; 130 $this->subtype = $data['subtype']; 131 $this->parameters = $data['parameters']; 132 133 if ($wakeup) { 134 $this->__wakeup(); 135 } 136 137 return; 138 } 139 140 $p = "\0".self::class."\0"; 141 if (["\0*\0_headers", $p.'body', $p.'type', $p.'subtype', $p.'parameters'] === array_keys($data)) { 142 $r = new \ReflectionProperty(parent::class, 'headers'); 143 $r->setValue($this, $data["\0*\0_headers"]); 144 145 $this->body = $data[$p.'body']; 146 $this->type = $data[$p.'type']; 147 $this->subtype = $data[$p.'subtype']; 148 $this->parameters = $data[$p.'parameters']; 149 150 if ($wakeup) { 151 $this->_headers = $data["\0*\0_headers"]; 152 $this->__wakeup(); 153 } 154 155 return; 156 } 157 158 trigger_deprecation('symfony/mime', '7.4', 'Passing extra keys to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this)); 159 160 \Closure::bind(function ($data) use ($wakeup) { 161 foreach ($data as $key => $value) { 162 $this->{("\0" === $key[0] ?? '') ? substr($key, 1 + strrpos($key, "\0")) : $key} = $value; 163 } 164 165 if ($wakeup) { 166 $this->__wakeup(); 167 } 168 }, $this, static::class)($data); 169 } 170 171 /** 172 * @deprecated since Symfony 7.4, will be replaced by `__serialize()` in 8.0 173 */ 87 174 public function __sleep(): array 88 175 { 176 trigger_deprecation('symfony/mime', '7.4', 'Calling "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 177 89 178 // convert iterables to strings for serialization 90 179 if (is_iterable($this->body)) { … … 97 186 } 98 187 188 /** 189 * @deprecated since Symfony 7.4, will be replaced by `__unserialize()` in 8.0 190 */ 99 191 public function __wakeup(): void 100 192 { 193 trigger_deprecation('symfony/mime', '7.4', 'Calling "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this)); 194 101 195 $r = new \ReflectionProperty(AbstractPart::class, 'headers'); 102 196 $r->setValue($this, $this->_headers); -
mailerpress/trunk/vendor/symfony/mime/Part/TextPart.php
r3333098 r3437941 26 26 private const DEFAULT_ENCODERS = ['quoted-printable', 'base64', '8bit']; 27 27 28 /** @internal */28 /** @internal, to be removed in 8.0 */ 29 29 protected Headers $_headers; 30 30 … … 239 239 } 240 240 241 public function __serialize(): array 242 { 243 if (self::class === (new \ReflectionMethod($this, '__sleep'))->class || self::class !== (new \ReflectionMethod($this, '__serialize'))->class) { 244 // convert resources to strings for serialization 245 if (null !== $this->seekable) { 246 $this->body = $this->getBody(); 247 $this->seekable = null; 248 } 249 250 return [ 251 '_headers' => $this->getHeaders(), 252 'body' => $this->body, 253 'charset' => $this->charset, 254 'subtype' => $this->subtype, 255 'disposition' => $this->disposition, 256 'name' => $this->name, 257 'encoding' => $this->encoding, 258 ]; 259 } 260 261 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 262 263 $data = []; 264 foreach ($this->__sleep() as $key) { 265 try { 266 if (($r = new \ReflectionProperty($this, $key))->isInitialized($this)) { 267 $data[$key] = $r->getValue($this); 268 } 269 } catch (\ReflectionException) { 270 $data[$key] = $this->$key; 271 } 272 } 273 274 return $data; 275 } 276 277 public function __unserialize(array $data): void 278 { 279 if ($wakeup = self::class !== (new \ReflectionMethod($this, '__wakeup'))->class && self::class === (new \ReflectionMethod($this, '__unserialize'))->class) { 280 trigger_deprecation('symfony/mime', '7.4', 'Implementing "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this)); 281 } 282 283 if ($headers = $data['_headers'] ?? $data["\0*\0_headers"] ?? null) { 284 unset($data['_headers'], $data["\0*\0_headers"]); 285 parent::__unserialize(['headers' => $headers]); 286 } 287 288 if (['body', 'charset', 'subtype', 'disposition', 'name', 'encoding'] === array_keys($data)) { 289 parent::__unserialize(['headers' => $headers]); 290 $this->body = $data['body']; 291 $this->charset = $data['charset']; 292 $this->subtype = $data['subtype']; 293 $this->disposition = $data['disposition']; 294 $this->name = $data['name']; 295 $this->encoding = $data['encoding']; 296 297 if ($wakeup) { 298 $this->__wakeup(); 299 } elseif (!\is_string($this->body) && !$this->body instanceof File) { 300 throw new \BadMethodCallException('Cannot unserialize '.__CLASS__); 301 } 302 303 return; 304 } 305 306 if (["\0".self::class."\0body", "\0".self::class."\0charset", "\0".self::class."\0subtype", "\0".self::class."\0disposition", "\0".self::class."\0name", "\0".self::class."\0encoding"] === array_keys($data)) { 307 $this->body = $data["\0".self::class."\0body"]; 308 $this->charset = $data["\0".self::class."\0charset"]; 309 $this->subtype = $data["\0".self::class."\0subtype"]; 310 $this->disposition = $data["\0".self::class."\0disposition"]; 311 $this->name = $data["\0".self::class."\0name"]; 312 $this->encoding = $data["\0".self::class."\0encoding"]; 313 314 if ($wakeup) { 315 $this->_headers = $headers; 316 $this->__wakeup(); 317 } elseif (!\is_string($this->body) && !$this->body instanceof File) { 318 throw new \BadMethodCallException('Cannot unserialize '.__CLASS__); 319 } 320 321 return; 322 } 323 324 trigger_deprecation('symfony/mime', '7.4', 'Passing extra keys to "%s::__unserialize()" is deprecated, populate properties in "%s::__unserialize()" instead.', self::class, get_debug_type($this)); 325 326 \Closure::bind(function ($data) use ($wakeup) { 327 foreach ($data as $key => $value) { 328 $this->{("\0" === $key[0] ?? '') ? substr($key, 1 + strrpos($key, "\0")) : $key} = $value; 329 } 330 331 if ($wakeup) { 332 $this->__wakeup(); 333 } 334 }, $this, static::class)($data); 335 } 336 337 /** 338 * @deprecated since Symfony 7.4, will be replaced by `__serialize()` in 8.0 339 */ 241 340 public function __sleep(): array 242 341 { 342 trigger_deprecation('symfony/mime', '7.4', 'Calling "%s::__sleep()" is deprecated, use "__serialize()" instead.', get_debug_type($this)); 343 243 344 // convert resources to strings for serialization 244 345 if (null !== $this->seekable) { … … 252 353 } 253 354 355 /** 356 * @deprecated since Symfony 7.4, will be replaced by `__unserialize()` in 8.0 357 */ 254 358 public function __wakeup(): void 255 359 { 360 trigger_deprecation('symfony/mime', '7.4', 'Calling "%s::__wakeup()" is deprecated, use "__unserialize()" instead.', get_debug_type($this)); 361 256 362 $r = new \ReflectionProperty(AbstractPart::class, 'headers'); 257 363 $r->setValue($this, $this->_headers); -
mailerpress/trunk/vendor/symfony/service-contracts/ServiceSubscriberTrait.php
r3333098 r3437941 54 54 } 55 55 56 /* @var SubscribedService $attribute */56 /** @var SubscribedService $attribute */ 57 57 $attribute = $attribute->newInstance(); 58 58 $attribute->key ??= self::class.'::'.$method->name;
Note: See TracChangeset
for help on using the changeset viewer.